AMC deleting root folder specified in script when clean=y

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
angst
Posts: 6
Joined: 18 Mar 2013, 00:55

AMC deleting root folder specified in script when clean=y

Post 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
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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
:idea: Please read the FAQ and How to Request Help.
angst
Posts: 6
Joined: 18 Mar 2013, 00:55

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

Post 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).
Post Reply