Author Topic: Locking Files  (Read 830 times)

0 Members and 1 Guest are viewing this topic.

Offline vbn

  • Occasional poster
  • *
  • Posts: 36
    • View Profile
Locking Files
« on: July 18, 2010, 10:43:55 AM »
Is there a way to "Lock" files which are being listed from new download requests ?

I am sorry tried searching but didnt find anything relevant  :(

My server has files which are download continously from all over the world and if I want to delete/move/rename a file its already locked by HFS....so how can I prevent fresh download requests on that file to be denied.

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1899
    • View Profile
Re: Locking Files
« Reply #1 on: July 18, 2010, 11:20:18 AM »
You can put this in the template for the build beta only

in the default template, at section  [file=folder=link|private]
replace
<a class='the-item' href="%item-url%">

by

{.if not|{.get|is new.}|<a class='the-item' href="%item-url%">.}

new files names are visible but the url not.


Offline vbn

  • Occasional poster
  • *
  • Posts: 36
    • View Profile
Re: Locking Files
« Reply #2 on: July 19, 2010, 01:20:42 AM »
I did that but how does that help restrict new download session from opening for a 'particular' file ?

How do I indicate to HFS that file xyz.abc is the one which should no longer be downloadable but only listed.

Offline maverick

  • Tireless poster
  • ****
  • Posts: 1052
  • Computer Solutions
    • View Profile
Re: Locking Files
« Reply #3 on: July 19, 2010, 05:30:28 AM »
How do I indicate to HFS that file xyz.abc is the one which should no longer be downloadable but only listed.

What you can do is move the files that should no longer be downloadable to a real folder, then in properties for that folder flag "no download".  The file list will still appear but the files won't be downloadable.
maverick

Offline vbn

  • Occasional poster
  • *
  • Posts: 36
    • View Profile
Re: Locking Files
« Reply #4 on: July 23, 2010, 02:13:26 AM »
Awesome...that worked !  ;D