Crates.io | archivio |
lib.rs | archivio |
version | 0.6.0 |
source | src |
created_at | 2020-11-19 17:38:53.830412 |
updated_at | 2020-11-20 09:15:16.846414 |
description | Based on the content of the Files directory creates a Tags directory with symbolic links to original content. Files should follow the naming convention AAAA-MM-DD[_Tags]+ |
homepage | |
repository | https://github.com/RCasatta/archivio |
max_upload_size | |
id | 314077 |
size | 12,488 |
When launched in a directory, it search contents of the Files sub-directory and creates a Tags directory with symbolic links to original content.
Files should follow the naming convention AAAA-MM-DD[_Tags]+
cargo install archivio
Files
├── 2019-10-13_Invoice_YCorp.pdf
└── 2020-11-12_Invoice_XCorp.pdf
launching archivio
will create a directory cambrian explosion
Tags/
├── 2019
│ └── 2019-10-13_Invoice_YCorp.pdf -> Files/2019-10-13_Invoice_YCorp.pdf
├── 2020
│ └── 2020-11-12_Invoice_XCorp.pdf -> Files/2020-11-12_Invoice_XCorp.pdf
├── Invoice
│ ├── 2019
│ │ └── 2019-10-13_Invoice_YCorp.pdf -> Files/2019-10-13_Invoice_YCorp.pdf
│ ├── 2019-10-13_Invoice_YCorp.pdf -> Files/2019-10-13_Invoice_YCorp.pdf
│ ├── 2020
│ │ └── 2020-11-12_Invoice_XCorp.pdf -> Files/2020-11-12_Invoice_XCorp.pdf
│ ├── 2020-11-12_Invoice_XCorp.pdf -> Files/2020-11-12_Invoice_XCorp.pdf
│ ├── XCorp
│ │ └── 2020-11-12_Invoice_XCorp.pdf -> Files/2020-11-12_Invoice_XCorp.pdf
│ └── YCorp
│ └── 2019-10-13_Invoice_YCorp.pdf -> Files/2019-10-13_Invoice_YCorp.pdf
├── XCorp
│ └── 2020-11-12_Invoice_XCorp.pdf -> Files/2020-11-12_Invoice_XCorp.pdf
└── YCorp
└── 2019-10-13_Invoice_YCorp.pdf -> Files/2019-10-13_Invoice_YCorp.pdf
Maximum depth of created directories is 3.
If a child directory will not filter more than current, it will not be created.
Tags/
root directory will not contain symbolic link (would be all).
When adding files you can safely run archivio
again to update Tags
dir.
In case of name changes or deletion old tags will not be updated,
but you can simply delete the Tags
directory and recreate it by relaunching archivio
.