Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
Nginx.Dir
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-leonov committed Jun 3, 2010
1 parent f714539 commit 3593d0a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,30 @@ Closes the corresponding `ngx_fd_t` stored within this `Nginx.File` instance and



Nginx.Dir
=========

Very simple interface to file system directories.


Static methods
--------------


### create(path, access)

Creates a directory with `path` if all the path except the last part is already exists.

if (Dir.create('users/' + uname, 0700) == File.ERROR)
throw new Error('could not create user home dir')


### remove(path)

Removes the last directory specified by `path`. Acts just like `rm` shell command.



Author
======

Expand Down

0 comments on commit 3593d0a

Please sign in to comment.