fs_extra
fs_extra copied to clipboard
Expanding opportunities standard library std::fs and std::io
These two commits add support for Copy on Write semantics to `fs_extra` via the `reflink` crate.
``` let mut path = result_path.as_os_str().to_os_string().into_string()?; if path.find("\\\\?\\") == Some(0) { path = path[4..].to_string(); } ``` First, this is relatively inefficient, as it creates a copy of the path and...
A move should be instantaneous when files/folders are on the same filesystem. But instead, a full copy/remove is done when doing `move_*` Not sure if this is within the scope...
It is `Result`, not `Result`, but the documentation does not tell what that number (`u32`) means.
is ``` fs_extra::dir_copy("a/b", "c/d"); ``` goint to create `c/d/b`, or just `c/d`? Does it depend on `c/d` existing or not? The documentation is very unclear. "Copies the directory contents from...
``` Error { kind: InvalidFile, message: "Path \"/tmp/state/0/data/ipc\" is not a file!" } ``` I wish it would just skip copying it...
Add support for copying files while preserving timestamps (do not change the last modified time), just like the cp command -p or --preserve option: [http://man7.org/linux/man-pages/man1/cp.1.html](http://man7.org/linux/man-pages/man1/cp.1.html) ``` -p same as --preserve=mode,ownership,timestamps...
More detail in #15
More detail in #17
Some files can be bigger but we want to change only one little part of this file. Will be a stupid load all full file data in a memory. It's...