Cannot rename downloded folder
Posted: February 19th, 2012, 4:54 pm
Hi
I have written a c# command line program to do some post download stuff, nothing fancy. One of the things I want to do is rename the folder ,ex "Colombiana 2011 US UNRATED BluRay 1080p DTS x264 CHD" to "Colombiana (6.7, 123min, 1080p)".
This is do with Directory.Move(src, dst) but this throws an exception saying that the folder is used by another process. Is it the sabnzbd process that keeps a lock on the folder when it starts the post processing script?
Regards
/Kim, Sweden
I have written a c# command line program to do some post download stuff, nothing fancy. One of the things I want to do is rename the folder ,ex "Colombiana 2011 US UNRATED BluRay 1080p DTS x264 CHD" to "Colombiana (6.7, 123min, 1080p)".
This is do with Directory.Move(src, dst) but this throws an exception saying that the folder is used by another process. Is it the sabnzbd process that keeps a lock on the folder when it starts the post processing script?
Regards
/Kim, Sweden