Auto organize files in any directory, Every time new file is added to directory, based on its type it will be moved to sub directory of corrosponding type.
$ npm install directory-organizer -g
Create a JSON file as per below format to provide a config.
[
{
"directory": "/home/mehul/Downloads", // Directory to auto organize
"files": [
{
"fileTypes": ["torrent"], // File type to watch to auto organize
"directory": "torrents" // Directory to move matching file types
},
{
"fileTypes": ["json"],
"directory": "jsonFiles"
},
{
"fileTypes": ["png", "jpg", "jpeg"],
"directory": "images"
},
{
"fileTypes": ["pdf"],
"directory": "pdfs"
}
]
}
]
Directory Organizer can organize multiple directories also, Add multiple objects at root level in above
config.json
file and specify path to directory indirectory
key.
$ directory-organizer ./config.json
Absolute or Relative path to config.json file created in configuration.
- Run directory organizer in background.
- Start and Stop CLI options.
Please drop an issue, if you find something that doesn't work, or a feature request at https://github.com/mehulcs/directory-organizer/issues
Find me on twitter @mehul_cs