Crates.io | packall |
lib.rs | packall |
version | 0.1.0 |
source | src |
created_at | 2021-12-03 21:07:57.443603 |
updated_at | 2021-12-03 21:07:57.443603 |
description | Eats all the files you feed and keeps them organized, first in the belly, after in the body, for future searches. |
homepage | |
repository | https://github.com/emuvi/packall |
max_upload_size | |
id | 491958 |
size | 37,732 |
Eats all the files you feed and keeps them organized, first in the belly, after in the body, for future searches.
// TODO - Update the file structure and flatten one hierarchical folder.
The files are kept in subdirectories inside the body root directory. The main factor of organization is the SHA256 checksum of the origin file. Each file is kept inside of three nested directories. The first directory name is the three first characters from the checksum. The second directory name is made starting with the forty character from the checksum until the sixth. Finally, the last and third directory name is made with all the checksum. Inside the third and last directory our file is stored. The name of the stored file is made with the start of "org-", that comes from "origin", plus a sequence of eighteen random characters and his extension.