fs_extra icon indicating copy to clipboard operation
fs_extra copied to clipboard

Expanding opportunities standard library std::fs and std::io

Results 48 fs_extra issues
Sort by recently updated
recently updated
newest added

This makes `dir::get_size` give a correct calculation of the size of a path of directory, that now matches that returned by eg: `du --bytes -s `. Before: - Symlinks were...

## Summary If one of the file entries being copied by `fs_extra::dir::copy` happens to be a symlink to a directory, then that symlink is converted to a real directory as...

## Summary If the directory contains symlinks, then [`dir::get_size`](https://github.com/webdesus/fs_extra/blob/5fccd175d87e76fba06a8e6f3381d9dc18ef1ed7/src/dir.rs#L761-L801) follows the symlinks and counts the sizes of those files too. If the targets of those symlinks are inside that same...

In my application, I need to get the size of a directory, and in order to avoid having to re-invent the wheel I was planning to use the `dir::get_size` method...

Hi, I have this code: ## Code ```rust static DIR_MOVE_OPTIONS: fs_extra::dir::CopyOptions = fs_extra::dir::CopyOptions { overwrite: false, skip_exist: true, buffer_size: 64000, copy_inside: true, content_only: true, depth: 0 }; static FILE_MOVE_OPTIONS: fs_extra::file::CopyOptions...

Submit for discussion

rfc

``` if let Err(e) = fs_extra::dir::move_dir(&thing, &destination_file, &fs_extra::dir::CopyOptions::new()) { messages += format!("Failed to move folder {}, reason {}\n", thing, e).as_str(); continue 'next_result; } ``` such code prints(error contains file name)...

Hey! Thx for lib, but I have noticed that directory copy behaves in non-idempotent way. Suppose we have: ``` let pathbufs = [PathBuf::from("directory1"), PathBuf::from("directory2"), PathBuf::from("directory3")]; let options = fs_extra::dir::CopyOptions {...