Hide Network Trash and Temp Items folder

Status
Not open for further replies.

nogi

Explorer
Joined
Jul 5, 2011
Messages
74
Hi,

I am relatively new to FreeNAS (been using for about a month now) and have one little issue. I have create a RAIDZ volume where I store my media which gets played back via XMBC. The problem I have is that I'm now getting the Network Trash folder and Temporary Items folder showing up in XMBC. Is there a way I can hide these folders or have them removed altogether?

Files can be purged straight away on this box as it's a replica of another.

regards,
Nogi
 

nogi

Explorer
Joined
Jul 5, 2011
Messages
74
Actually, I found that by hiding them in via CLI using the dot option in the front of the name is working perfectly. The only problem is that it would be extremely time consuming to change for all folders. Is there a way I could script this?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
If you're in the parent folder this will find all files name "Original-File" and rename them to .New-Name. You need the quotes around the Original-File name.

find . -type d -name "Original-File" -exec mv {} .New-Name \;


Also, did you check all of your settings in CIFS on FreeNAS? I think there's a Trash/Recycle setting, not sure if it fixes what you are trying to prevent.

EDIT: had to change -type to 'd'
 
Status
Not open for further replies.
Top