A small, multi-threaded Java program that monitors specified folders for and copies them to another specified folder.
As of right now, it is specialized to working with lftp downloads and episodes of anime, since that is the program that I use to download and those are the files that I usually need to sort.
Uses:
- org.json for json parsing.
- Apache Commons IO
- AnitomyJ, which is a Java port of the original Anitomy. All credit for Anitomy and AnitomyJ goes to @erengy and @Vorror, respectively.
{
"paths": [
{
"source": "C:/example",
"destination": "D:/example",
"placeInSub": false
},
{
"source": "C:/example2",
"destination": "C:/example3",
"placeInSub": true
}
]
}
Above is an example paths.json file, which is used to configure which
folder(s) to watch, and where to copy new files to. placeInSub
specifies where to place the file in a subfolder, which is named after
the detected file, in the destination folder.
This function is most useful for episodes of anime as AnitomyJ will parse the filename to determine the name of the show.
- Generalize detection for more download programs than just lftp.
- Add option to auto-rename anime downloads based on detected show and episode number.
- Add option to move files instead of copy.