Lock out a file

G

Guest

I've created webform gui where I can chose a file, and move it a another
folder. If the user clicks on "OK", the file should be moved to the specified
folder.

The problem is, the files are public, that means, they are downloadable and
it can be that some one is downloading a file at the same time it should be
moved.


So, my question is, how do I lock a file in way that blocks all write and
read access to it immediately? If a file is marked to be moved, and the
process starts, all downloads of the file needs to be aborted.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top