Crates.io | diffcopy |
lib.rs | diffcopy |
version | 0.1.1 |
source | src |
created_at | 2024-02-19 16:21:41.785865 |
updated_at | 2024-02-27 16:38:23.771613 |
description | Copy modified files from sub directories into one target directory. |
homepage | |
repository | |
max_upload_size | |
id | 1145453 |
size | 15,225 |
Copy modified files from sub directories into one target directory.
diffcopy checks which files have changed in a directory including its subdirectories based on the file name, file size and modification date.
These files are then copied to a target directory while retaining the original modification date.
If a file with the same name is stored in two or more directories, the file with the highest modification timestamp is copied.
./diffcopy test_data/input /test_data/output txt,dxf
test_data
├── input
│ ├── 2022
│ │ └── foo.txt
│ └── 2023
│ ├── another
│ │ └── baz.txt
│ └── bar.txt
└── output
├── bar.txt
├── baz.txt
└── foo.txt