Maid Sweeper

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.

Feature

Installation

  1. Run cargo install maid-sweeprs.
  2. Copy maidsweep.yaml to ~/.maidsweep.yaml. Or any place you like, in that case you need to specify the path with -c option.
  3. Install MongoDB and start the service (optional).

Usage

maid [--use-mongodb] [--mongodb-host <MONGODB_URL>] [-c <CONFIG_PATH>] [-t <TAGS>] PATH ACTIONS

ACTIONS = [-x ARGS] | [--cp <DESTINATION>] | [--mv <DESTINATION>] | [--save]

With MongoDB

  1. Start a MongoDB service.
  2. Call maid --mongodb-host <MONGODB_URL> ~/Videos/Study --save, then you can find tagged entries in the database. Sweeping works on all directories tagged.
  3. Call 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.

Without MongoDB

Call maid ~/Videos/Study -x --cp Tagged, the maid copies all tagged files and directories to Tagged directory, categorized.

Ideas