Disallow deleting parent directory

So I just did the stupidest thing and was surprised there was no safety net to catch me. I added a new series and then realised it added to "tvshows/series1/series2"
when it should of just been “tvshows/series2” so i edited the path to “tvshows” forgetting to add the “/series2” and then decided rather than editing it again and having to play around and move the files i’d just delete the series and re-add it to the correct location.

So I pressed delete and then noticed my entire “tvshows” library disapeared due to me accidentally setting the “series2” home as “tvshows”…

It would be nice if we could add the parent directory so in this case “tvshows” as a folder that can’t be deleted.

Perhaps disallow adding shows into the root directory without their subdirectory stated.

For example, don’t allow family guy to use “tvshows”(root) make it use or if the user does select “tvshows” without stating “tvshows/family guy” then auto populate a folder with the name of the series.

So if i select “tvshows” it will create in “tvshows/family guy”

Or even something that when you click delete it states “this will delete x files” because i should of only been deleting 1 file but if i saw it said you will be deleting 5000 files i would of cancelled and looked into it more.

You can add it as a root folder, not sure what else we can do, because drone doesn’t know the path you added is a root directory unless you tell it it is.

Already on the Trello board: https://trello.com/c/lX5YMmsE/589-show-files-when-deleting-a-series-and-its-files but that wouldn’t have told you it was deleting all the files, just the ones it was able to connect.

Added a card on edit validation: https://trello.com/c/17e5PPdw/606-add-validation-to-series-edit

I have to ask, why delete the file at all?

I’m fairly new to nzbdrone and decided to start adding my new series to nzbdrone and not use sickbeard. I Accidentally added it to my anime directory because I’d initially tested it with anime and it had that path predefined when i clicked “add show” the path being /anime/anime-series-name/tvshow-series-name/ (It was inside the subdirectory of an anime series) and then went in and edited to /tvshows/ and it didn’t autopopulate to /tvshows/tvshowseries-name/ as it would when you add the series for the first time so rather than having to type the name out again (it was rather long) I decided to just delete it and re add it because nzbdrone auto populates the name and creates the folder etc when you add it.

So I figured I’d just delete the old folder and the 1 episode it had downloaded (forgetting I moved it from /anime/anime-series-name/tvshow-series-name/ to /tvshows/ via the edit button in NZBDrone and ended up deleting about 1TB of shows from the root lol. I didn’t even realise because there was no UI telling me how many files I was deleting or how much time was remaining (as you normally see on your operating system) so by the time I realised it was too late…

Stupid mistake by myself but I was just trying to perhaps get something slightly changed so It doesn’t happen to anyone else.

Even something as simple as looking at the number of files being deleted and let’s say if it’s over 250 files warning the user they’re about to delete X files.