Folder being deleted on rename and move

All your suggestions, requests and ideas for future development
Post Reply
chris987
Posts: 2
Joined: 10 May 2016, 20:23

Folder being deleted on rename and move

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

Re: Folder being deleted on rename and move

Post 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
:idea: Please read the FAQ and How to Request Help.
chris987
Posts: 2
Joined: 10 May 2016, 20:23

Re: Folder being deleted on rename and move

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

Re: Folder being deleted on rename and move

Post by rednoah »

Make it a not-hidden file then. ;)
:idea: Please read the FAQ and How to Request Help.
Spiritfire
Posts: 2
Joined: 12 May 2016, 07:37

Re: Folder being deleted on rename and move

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

Re: Folder being deleted on rename and move

Post 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.
:idea: Please read the FAQ and How to Request Help.
Spiritfire
Posts: 2
Joined: 12 May 2016, 07:37

Re: Folder being deleted on rename and move

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

Re: Folder being deleted on rename and move

Post by rednoah »

Please read the FAQ.
:idea: Please read the FAQ and How to Request Help.
jgillman
Posts: 1
Joined: 19 May 2016, 22:57

Re: Folder being deleted on rename and move

Post 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.
  1. When I drag the contents of my download folder into FileBot and rename them the folder is untouched.
  2. When I drag the download folder itself into FileBot it removes the folder if it's empty.
  3. 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.
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Folder being deleted on rename and move

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply