Test whether or not the given path exists
Method: GET
Default URL: /fs2http/exists
- String path The path
Read a directory
Method: GET
Default URL: /fs2http/ls
- String path The path
change file owner and group recursively
Method: POST
Default URL: /fs2http/chownRec
-
String path The path
-
String uid The new uid
-
String gid The new gid
Print value of a symbolic link or canonical file name
Method: GET
Default URL: /fs2http/readlink
- String path The path
Write the content of a file
Method: POST
Default URL: /fs2http/writeFile
-
String path The path
-
String data The content to write
-
String encoding The encoding of the data (optional, default is setted from Node.js)
Read a directory
Method: GET
Default URL: /fs2http/readdir
- String path The path
Make a copy of a file or a directory recursively
Method: POST
Default URL: /fs2http/copyRec
-
String path The path
-
String newpath The new path
Remove empty directories
Method: DEL
Default URL: /fs2http/rmdir
- String path The path
Change file last access and modification times
Method: POST
Default URL: /fs2http/utimes
-
String path The path
-
String atime The last access time (see Node.js documentation for format)
-
String mtime The last modification time (see Node.js documentation for format)
Change file mode bits recursively
Method: POST
Default URL: /fs2http/chmodRec
-
String path The path
-
String mode The new mode
Read a file
Method: GET
Default URL: /fs2http/readFile
- String path The path
Call the unlink function to remove the specified file
Method: DEL
Default URL: /fs2http/unlink
- String path The path
Rename a path
Method: POST
Default URL: /fs2http/rename
-
String path1 The old path
-
String path2 The new path
change file owner and group
Method: POST
Default URL: /fs2http/chown
-
String path The path
-
String uid The new uid
-
String gid The new gid
Display file or file system status
Method: GET
Default URL: /fs2http/stat
- String path The path
Remove files and directories recursively
Method: DEL
Default URL: /fs2http/rmRec
- String path The path
Make a new name for a file
Method: POST
Default URL: /fs2http/symlink
-
String link The destination
-
String path The path to link
Make a directory
Method: POST
Default URL: /fs2http/mkdir
-
String path The path
-
String mode The mode (optional, default comes from Node.js)
Change file mode bits
Method: POST
Default URL: /fs2http/chmod
-
String path The path
-
String mode The new mode