rejetto forum

Automatic refresh of the content of the virtual folder

0 Members and 1 Guest are viewing this topic.

Offline vasilii91

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
Hi, guys.
I spent a lot of time searching on the forum, but didn't find answer on my question.

So,
Does anyone know whether exist possibility to automatic refresh of the content of the virtual folder?

What do I mean?
I have created a virtual folder with name "test" with 5 images, i.e. Then I have copied another image to this folder, but the HFS hasn't understood that it has to reload the content of the folder. So, I have thought that the HFS will return 6 images through some time, but it always has returned me 5 images.

Is it possible to customise this feature in HFS?

Thank you.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
yes, a code simlar to this

the line placed in the header is what you need:
<meta http-equiv="refresh" content="10"; URL="https://%path to folder%">

break down
meta data - http-equiv="refresh"  is a comand to hit the refresh button on the webpage, but to a specfic page you put(in your case the same folder)...
content="10" is how many second will pass before the page will refresh, 10 means 10 seconds(as if the curent user has just clicked the link...
URL, is the path to the download file you are wanting to send...

html code(from code of my own... http to transfer to http...(LOLZ):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta http-equiv="refresh" content="10"; URL="http://bmartino1.dyndns.org">
<title></title>
</head>
<body>
<p>This page refresh every # seconds to itself link: <a href="%URL PATH"> text &lt;.a&gt;</a></p>
</body>
</html>

LOLZ... hopes this helps
:)

Note, this means that the path will contiue to refresh to reconect every 10 you may need more coding and/or a rethink on changin the vitural folder to a real folder!
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
did you consider using real folders instead?

bmartino1, you misunderstood the problem. It's server side.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
I see, than you rejeto for taht, i over looked and under estemated the question teh the previous post is html code to refresh that page, you want hfs vfs to relad once the file has been uplaaded.

If i asume corectly that once you save hfs vfs close hfs and opne hfs (if it doesn't opent he vfs already) open/load vfs you saved, does the pctures appear???

if that is the case you can have hfs save on exit and make a scheduled task every hor to close and reopen hfs:

----batch to close and then open the program-------

@echo off

:: clears the screen
cls

:: Enter your process name below
tskill HFS

:: Enter the service name here (can be found in services.msc)
::net stop "your service name here"

:: pauses for 5 seconds
echo waiting 5 seconds before restart
PING 192.168.1.1 -n 1 -w 5000 >NUL

:: starts the service you just stopped or any other service you type the name of
::net start "your service name here"

:: starts the program without opening a new command window
start C:\WEBroot\HFS.exe

:: pauses for 5 seconds
echo waiting 5 seconds before restart
PING 192.168.1.1 -n 1 -w 5000 >NUL

:: clears the screen again
cls

:: echos the following
::echo The requested program and service has been restarted. Press any key to exit.
echo DONE

:: tells them to press any key to close the prompt
:: you can remove this and the previous line if you just want the window to close
:: personally, I like this so the person who ran it knows it was run successfully
::pause
exit
-----------------------
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
Yes, what rejetto said is the best option. Real folders are best for "dynamic" content, whereas virtual folders are more suitable for "static" content. Nevertheless, what bmartino1 said may work fine, but it's unnecessary if you use real folders.

rejetto: May be you can add an option to refresh the VFS content. Something like "Refresh VFS every X time", where anyone can set the amount of time in minutes it refresh the VFS. Well, I know you are busy and has no time, but it's just an idea...  ;)
« Last Edit: May 08, 2014, 07:05:01 AM by LeoNeeson »
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.