Automatically delete or hide folders


Recommended Posts

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 by bsavage13
Link to comment
  • 3 months later...
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 by itimpi
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.