Page 1 of 1
Folder being deleted on rename and move
Posted: 10 May 2016, 20:32
by chris987
When I use rename on TV shows (haven't tested movies) my format also moves the file to the correct location. Since 4.7 Filebot is deleting the original folder.
The files are being moved from E:/Download/Completed and the expression I am using is E:/TV/{n}/{'Season '+s.pad(2)}/{n} - {s00e00} - {t}
Once Filebot moves the file it deletes the entire "Completed" folder meaning I have to recreate the folder each time to allow downloads to drop into it.
Is there a way I can stop this
Thanks
Re: Folder being deleted on rename and move
Posted: 11 May 2016, 04:50
by rednoah
If your "Completed" folder is empty, then it will be deleted after processing. You can get around that by making sure that folder is not empty.
@see
viewtopic.php?f=11&t=3722
Re: Folder being deleted on rename and move
Posted: 11 May 2016, 17:32
by chris987
Thanks for responding. I had a look at the link you provided and the suggestion to use a hidden file to stop deletion, however Filebot still deleted the folder when I tried that.
Re: Folder being deleted on rename and move
Posted: 11 May 2016, 17:41
by rednoah
Make it a not-hidden file then.

Re: Folder being deleted on rename and move
Posted: 12 May 2016, 07:44
by Spiritfire
How about an option setting so we can choose if we want folders deleted automatically or not? Like maybe an option to leave the "root" folder we chose intact while deleting the subfolders, or even no deletion at all if we don't want it?
Re: Folder being deleted on rename and move
Posted: 12 May 2016, 12:27
by rednoah
You can try the latest revision and see if that works better for you? The behaviour has been adjusted slightly, including better support for auto-detection of what most people would call "root" folder.
Re: Folder being deleted on rename and move
Posted: 14 May 2016, 09:21
by Spiritfire
Been using the latest revision that I know of. 4.7. It's hard to tell for sure since there's no kind of About in the UI.
Re: Folder being deleted on rename and move
Posted: 14 May 2016, 10:50
by rednoah
Please read the FAQ.
Re: Folder being deleted on rename and move
Posted: 19 May 2016, 23:30
by jgillman
Just wanted to give my feedback, I grabbed the latest release (FileBot 4.7 r3995) and tested it out on my Mac 10.11.4.
- When I drag the contents of my download folder into FileBot and rename them the folder is untouched.
- When I drag the download folder itself into FileBot it removes the folder if it's empty.
- Adding a hidden file (e.g. .keepme) to the folder successfully prevented the folder from being deleted regardless of whether I dragged in the folder or the contents.
All in all it seems to be working like I personally expect it to! I was previously using r3923 which is the version that comes with brew and that kept deleting my downloads folder which was super annoying! The main annoyance was that suddenly my download folder was gone which I have several programs and scripts watching and they would all start complaining and generally freak out.
USUALLY it's handy that the folder is deleted, especially when renaming a bunch of files that are in various folders, but it was an unexpected behavior and took me several days to even figure out that it was FileBot that was doing it.
Re: Folder being deleted on rename and move
Posted: 20 May 2016, 06:13
by rednoah
Thanks for the feedback. This one is a bit tricky because there's no clear cut rules of what behaviour people might expect in different situations.
Unless more people complain (with good arguments) the behaviour will probably stay as it is now with the latest revision.