Modify IoFactory's fs_mkdir, and add fs_rename
The invocation for making a directory should be able to specify a mode to make the directory with (instead of defaulting to one particular mode). Additionally, libuv and various OSes implement efficient versions of renaming files, so this operation is exposed as an IoFactory call.
This commit is contained in:
parent
d7b6502784
commit
7bf58c2baa
5 changed files with 41 additions and 4 deletions
|
|
@ -592,6 +592,11 @@ extern "C" int
|
|||
rust_uv_fs_readdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, uv_fs_cb cb) {
|
||||
return uv_fs_readdir(loop, req, path, flags, cb);
|
||||
}
|
||||
extern "C" int
|
||||
rust_uv_fs_rename(uv_loop_t *loop, uv_fs_t* req, const char *path,
|
||||
const char *to, uv_fs_cb cb) {
|
||||
return uv_fs_rename(loop, req, path, to, cb);
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
rust_uv_spawn(uv_loop_t *loop, uv_process_t *p, uv_process_options_t options) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue