Watch DropBox directory without server restart
Posted: Wed Oct 12, 2011 4:45 am
Hi,
I've been playing around with the DropBox feature a little bit, and I'm wondering if there is a way to get the fs.client to watch new folders created in DropBox without resarting the server?
I've got some code in php that imports files to a /files directory.
It then checks if a user labelled directory exists in Omero's dropbox (e.g. DropBox/user1), and if it doesn't create the folder and move the files into it.
This part is working.
However, the files in a newly created folder stay there and are not imported to Omero.
I've looked at the logs and it seems that DropBox doesn't know they are there.
It appears that the fs.client doesn't start watching the folders in the DropBox directory until the server has been restarted. Is this the case?
If so, is there any way to change this so that the client starts watching any new folders as soon as they are created?
If this is not the case...any ideas why this might be happening?
Cheers,
Heidi
I've been playing around with the DropBox feature a little bit, and I'm wondering if there is a way to get the fs.client to watch new folders created in DropBox without resarting the server?
I've got some code in php that imports files to a /files directory.
It then checks if a user labelled directory exists in Omero's dropbox (e.g. DropBox/user1), and if it doesn't create the folder and move the files into it.
This part is working.
However, the files in a newly created folder stay there and are not imported to Omero.
I've looked at the logs and it seems that DropBox doesn't know they are there.
It appears that the fs.client doesn't start watching the folders in the DropBox directory until the server has been restarted. Is this the case?
If so, is there any way to change this so that the client starts watching any new folders as soon as they are created?
If this is not the case...any ideas why this might be happening?
Cheers,
Heidi