I am working on a script that monitors the downloads
folder for completed items and when found it begins processing for that item.
My current detection method tries to rename the subdirectory and if successful it assumes complete. For single files it attempts to move the file into a subdirectory named \filename\filename.ext
and if successful assumes complete. This together with a list of known temp files.
While this method may be accurate on when the file/dir is indeed in use or not, it may not work well with some browsers or downloaders that do not lock files while waiting to resume. A version that also checks the date and processes only if xx
days old would not be ideal since all downloads would get the delay.
Anybody have a better idea?