Page 1 of 1

AMC deleting root folder specified in script when clean=y

Posted: 14 May 2013, 13:21
by angst
Ok, I know this should be easy, but I can't for the life of me figure out why AMC is deleting the root folder (.processing) when this script is run:

filebot -script fn:amc /mnt/video1/.processing --output /mnt/video1/Plex --action move --conflict skip -non-strict --def clean=y

I have thought up a work around, which is to place a file in the folder owed by root that the script can't delete so long as it is run by user deluge, but I'd like to know what I am doing wrong.

Thank you, Angst

Re: AMC deleting root folder specified in script when clean=

Posted: 14 May 2013, 13:40
by rednoah
AMC is supposed to be called by your client on each newly downloaded file or folder, not the root folder.

If you use AMC on your download root then i guess you can't do --def clean=y but need to run the cleaner script after the amc script.
http://www.filebot.net/forums/viewtopic ... 1341#p1341

Re: AMC deleting root folder specified in script when clean=

Posted: 14 May 2013, 13:58
by angst
Ok. I will review that. I also realized that the parent directory /mnt/video1 had 777 permissions. I think if I change those to 755 (it is not owned by deluge) it won't delete, either. Not sure why I posted without thinking of that. Happens to me all the time (extraverted thinking).