WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Auto Copy removing monitored folder too (Read 6468 times)
wesman
Junior Member
**
Offline



Posts: 75
Australia
Auto Copy removing monitored folder too
Jun 1st, 2009 at 5:24am
 
Hi Gert

We have encountered a situation where we have set up an Auto Copy task to copy and then remove files (ie move) files from one folder to another. We also need sub-folders monitored and for these folders to be copied across along with their contents.

eg.

monitoreddirectory/filename.txt we need to go to targetdirectory/filename.txt

and monitoreddirectory/subdir/filename.txt we need to go to targetdirectory/subdir/filename.txt

We have found that if we have the setting in the task to "Remove the directory if it is empty" checked then the following operation works correctly...

monitoreddirectory/subdir/filename.txt goes to targetdirectory/subdir/filename.txt

BUT

monitoreddirectory/filename.txt copies the file correctly to targetdirectory/filename.txt and then it deletes the monitoreddirectory itself.

What needs to happen is that the monitored directory should never be deleted - even though it is technically the parent directory if a file is uploaded into it (ie not uploaded into a sub-folder first)

Would you be able to look into this and build in a fix into the next beta release please.


We have found that in the meantime we can leave the Remove the directory if it is empty unchecked and then the monitoreddirectory doesn't get deleted, but this does leave empty subdir folders in the monitoreddirectory. So we will have to set up another task to poll the monitoreddirectory every few hours and delete any empty subdir folders.

It would be great if we didn't have to have 2 tasks running to do what the auto copy task should be able to do alone.

Hope this all makes sense.

Thanks

Wes
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Auto Copy removing monitored folder too
Reply #1 - Jun 1st, 2009 at 9:12am
 
Thanks for the report, Wes.

That obviously should not be happening, I will do some tests today. A new beta (incl the new "Folder Size" option) will be available later today or tomorrow.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
wesman
Junior Member
**
Offline



Posts: 75
Australia
Re: Auto Copy removing monitored folder too
Reply #2 - Jun 1st, 2009 at 9:22am
 
Excellent, thanks Gert! Superb as usual. Thanks. Wes
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Auto Copy removing monitored folder too
Reply #3 - Jun 2nd, 2009 at 12:16pm
 
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
wesman
Junior Member
**
Offline



Posts: 75
Australia
Re: Auto Copy removing monitored folder too
Reply #4 - Jun 2nd, 2009 at 12:45pm
 
Excellent, thanks Gert - does this Beta include the folder size less than update as well?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Auto Copy removing monitored folder too
Reply #5 - Jun 2nd, 2009 at 12:58pm
 
Sorry, not yet.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
wesman
Junior Member
**
Offline



Posts: 75
Australia
Re: Auto Copy removing monitored folder too
Reply #6 - Jun 2nd, 2009 at 1:01pm
 
Ok no worries, thanks Gert. The fix for the Auto-Copy plugin works nicely - thank you!
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1