Page 1 of 1

Hot Folders

Posted: Tue Apr 27, 2021 3:46 pm
by cmhjon
Hi all,

I was wondering if anyone might have an idea on how a LiveCode stack could be scripted to monitor a "hot folder". For anyone who might not know what a hot folder is, a hot folder is simply a folder on a computer that when a file is put into said folder, software that monitors said folder then does something with the file in said folder.

For my needs, files placed into the hot folder would accumulate until a certain time of day is reached (in this case, midnight) and then all the files within the hot folder are then copied to another folder on a different computer. Once complete, all the files in said folder are then deleted.

Could something like this be done?

Thank you,
Jon :-)

Re: Hot Folders

Posted: Tue Apr 27, 2021 4:23 pm
by Klaus
Hi Jon,
Could something like this be done?
sure! I would just "send" a handler ervery X minutes and check if that folder has changed.
If yes, take action, if not, "send" again in X minutes.

Get the picture?


Best

Klaus

Re: Hot Folders

Posted: Tue Apr 27, 2021 6:07 pm
by dunbarx
What Klaus said.

What Klaus didn't say was "read about the files function in the dictionary"

Craig