Jump to content

Using PHP to Move Folder Directories


dlbrown06

Recommended Posts

Long time reader, first nub post!

 

Okay, without going too much into it I have this PHP script that moves an entire directory to another location on a different server on the same network.

 

It works great, EXCEPT when someone has a folder open that is in the directory.  The script only moves part of the directory and then crashes because it is unable to move the file that is open obviously.

 

My question. Is there any good method I can use to check if all the files are not opened by a user before I begin transfering the directory?

Link to comment
https://forums.phpfreaks.com/topic/192976-using-php-to-move-folder-directories/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.