Jump to content
Sign in to follow this  
twokay

empty folders not deleted after file move(delete

Recommended Posts

I have created a archive script to move(delete) the files after the archive. I have also told it to delete the empty folders after the move. The script is successful at deleting the files but is leaving me with the empty folders instead of deleting those also. The archive operations log states that these folders were locked, inuse or not found. I do not understand how they could be locked or inuse because this script runs on the weekend when the folders are neither locked or inuse and they must be found because they are still there. I am stumped

Share this post


Link to post
Share on other sites

Hi There,

 

Some basics -Can you give some more details about the OS environment you are in and how these "problem folders" are created? Can you also verify that there isn't a file within a subfolder in the folders that are left behind?

 

Thanks

 

Nate

Share this post


Link to post
Share on other sites

Hi

 

This is a pure hack but I'm curious...

Retrospect won't delete a folder with files in it- my theory is that Retrospect is trying to delete the folders before the OS has actually had a chance to delete the files.

Try scheduling your archive twice in a row and see if the empty folders get removed the second time around.

Nate

Share this post


Link to post
Share on other sites

Quote:

The archive operations log states that these folders were locked, inuse or not found.

 


 

What are the exact error messages?

 

Are the folders/files on the local drive or are they on a network? Check the folder properties. There may be a Read Only attribute set or the user under which Retrospect is running may not have permission to delete the folders.

Share this post


Link to post
Share on other sites

I had something similar happening, whereas in my case the folders were not completely empty - some folders contained an invisible .DS_Store file, which OS X clients had created. Maybe that applies to your case?

 

Just a thought smile.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×