A simple/fast system to automatically scan FTP directories and download new folders, then automatically create a .torrent file, and pass the .torrent file's save location as a variable into a php file.
FTP scans/"updates" must be extremely rapid, 1 second is preferable, and use some sort of database to keep track of what has already been downloaded.
it should scan ftp directories (ie /project1 and /project2) and download any new folders that have appeared since the last scan (ie /project1/2514 and /project2/492)
it's preferable if it stores the file sizes in the database too, so we can calculate how much download bandwidth the project has used so far.
Use of (well documented) 3rd party programs is acceptable, however program MUST use mktorrent ([url removed, login to view]~borg/) for torrent creation. the torrent output must be the same
program must pass the .torrent's save location as a variable to a php file. For this project, the php file only needs to save the variable to a simple .txt dump.
Program can be in java, Ruby, or python... but MUST run on linux. And all the programs must have a configuration system that allows us to set (At minimum): FTP site, FTP port, FTP username, FTP password, FTP security (no encryption, ssl, etc), remote scan directory, FTP transfer local save directory. ALso needs to have: torrent tracker configuration, .torrent save location, and support changes for which php file the "torrent save location "variable is sent too.
messaging for questions is encouraged