rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: FTNCmedia on October 27, 2011, 04:52:29 PM

Title: folder archives
Post by: FTNCmedia on October 27, 2011, 04:52:29 PM
General question:

I am using RAWR template and with that tpl, you can download the entire contents of a folder/drive and sometimes that can be HUGE. Is there a way to limit the size of a download? It is convenient to use that function (ie. music albums, seasons of shows..etc.) and I do not really want to get rid of that function. thx..
Title: Re: folder archives
Post by: rejetto on October 27, 2011, 08:20:20 PM
in the virtual file system you can remove the "archivable" attribute from a folder and give it just to a subfolder.
this is easy while you have everything virtualized, but harder with real folders.
somewhere in the forum i remember a script to prevent folder archives based on the depth of the folder (where a folder has depth 1 and a subfolder depth 2 and so on).
anyway this is not surely perfect as this kind of file system has its limits.
Title: Re: folder archives
Post by: FTNCmedia on October 27, 2011, 08:26:11 PM
Thank you for the quick reply. I will dig in there and see what I can do about removing the archivable attributes from the main large folders. I know you are busy, but you have any idea where I would start looking for that script to prevent folder archives based on depth?

Again, thx for this product..:)
Title: Re: folder archives
Post by: rejetto on October 27, 2011, 08:29:54 PM
i used google and i think i found it. Give it a look
http://www.rejetto.com/forum/index.php/topic,8609.0.html
Title: Re: folder archives
Post by: FTNCmedia on October 28, 2011, 06:30:29 AM
Rejetto,

Again, I appreciate the help and sorry I am a pain in the ass :) I got the script

[+archive name]
{.if|{.%stream-size% > 2000000000.}|{:
  {.disconnect reason|archive too big.}
:}.}

I went to post questions to RAWR team but it led me back to rejetto forum! lol...so I guess I will ask question here. Where do put this script? I am runnin RAWR 0.1.3

Thx again.
Title: Re: folder archives
Post by: rejetto on October 30, 2011, 04:20:52 PM
it's an event script (http://www.rejetto.com/wiki/index.php?title=HFS:_Event_scripts).

ALT+F6
and paste the text there