Crates.io | maid-sweeprs |
lib.rs | maid-sweeprs |
version | 0.5.1 |
source | src |
created_at | 2023-05-08 23:00:15.358477 |
updated_at | 2023-05-12 09:54:28.0574 |
description | Call a maid to label old files and sweep them under the rug. |
homepage | |
repository | https://github.com/noirgif/maid-sweeprs/ |
max_upload_size | |
id | 860135 |
size | 95,283 |
If you have a lot of files unorganized, and do not want to break up directories like code projects and applications, this tool maid is for you.
This is the Rust version of maid-sweeper, a tool service to classify files and directories.
If desired, the maid can practice Danshari given permission. For example, she can sell your unused iPad for money.
Like Toki in Blue Archive, she is a maid with two modes:
Online: Label the files/directories and save them in a mongodb database. When dispatching those files it can also read the entries from the database. Useful if you want to sweep the same directory multiple times or keep a statistics of the files.
Offline: Label the files/directories and dispatch them immediately. Useful if you want to sweep a directory once.
code projects and application directories are labeled, and their children are not scanned
others are labeled based on the extensions, or names if its name indicates that it is a special kind of file.
cargo install maid-sweeprs
.maidsweep.yaml
to ~/.maidsweep.yaml
. Or any place you like, in that case you need to specify the path with -c
option.maid [--use-mongodb] [--mongodb-host <MONGODB_URL>] [-c <CONFIG_PATH>] [-t <TAGS>] PATH ACTIONS
--use-mongodb
uses mongodb entries for sweeping.--mongodb-host
specifies the mongodb url, default is mongodb://localhost:27017
.-c
specifies the path to the config file, default is ~/.maidsweep.yaml
.-t
specifies files with which tags to sweep, default is any tag.ACTIONS = [-x ARGS] | [--cp <DESTINATION>] | [--mv <DESTINATION>] | [--save]
-x
is like --exec
in find, and -x
in fd
, it executes a command.
--cp
, --mv
copies or moves a file to <destination>/<first tag of the file>/
.
--save
saves the entries to the database, you can then specify --use-mongodb
to read the entries from the database for sweeping.
maid --mongodb-host <MONGODB_URL> ~/Videos/Study --save
, then you can find tagged entries in the database. Sweeping works on all directories tagged.maid --use-mongodb --mongodb-host <MONGODB_URL> -t video game --mv classified
, and the maid is going to move all 'video' or 'game' tagged files and directories to a classified/video
, and `classified.Call maid ~/Videos/Study -x --cp Tagged
, the maid copies all tagged files and directories to Tagged
directory, categorized.