bsavage13 Posted June 14, 2019 Share Posted June 14, 2019 (edited) Hello everyone. It's clear in looking over these forums that those of you active here know WAY more than I do so I'm looking to borrow some of your ingenuity. Perhaps this has already been done but I'm having trouble locating it. I'd like to figure out a way with Unraid so that when I delete an episode or movie, the folder containing it is automatically deleted. The best bet is some kind of script or plugin that would automatically (on a schedule probably) scan for and delete folders smaller than a set size. Even better would be a way to instead of deleting the folders....hide them from Windows. Any ideas? Thanks in advance for your help! Edited June 14, 2019 by bsavage13 Quote Link to comment
bsavage13 Posted June 15, 2019 Author Share Posted June 15, 2019 Awesome thank you! Is there something similar to easily hide and unhide folders instead of removing them by chance? Thanks again for your help! Quote Link to comment
bsavage13 Posted June 16, 2019 Author Share Posted June 16, 2019 That gives be some things to try. Thank you again! Quote Link to comment
bally12345 Posted June 19, 2019 Share Posted June 19, 2019 Hi I used the script linked above to remove all empty folders or folders with nothing in except for leftover stuff like nfo thumbnails etc. hence the 10mb size. The problem with hiding them is that you will need to unhide them when they have something in Quote Link to comment
piratx Posted October 1, 2019 Share Posted October 1, 2019 Hi, You can hide them using chflags hidden nameoffile-folder and unhide them with chflags nohidden nameoffile-folder. But I dont see that chflags command in unraid Quote Link to comment
itimpi Posted October 2, 2019 Share Posted October 2, 2019 (edited) 4 hours ago, piratx said: Hi, You can hide them using chflags hidden nameoffile-folder and unhide them with chflags nohidden nameoffile-folder. But I dont see that chflags command in unraid I do not think that ‘chflags’ is available under Linux? It is only ever mentioned in the context of BSD and systems derived from that. Edited October 2, 2019 by itimpi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.