This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/)


On 22/07/2012 16:08, Andrey Repin wrote:
Greetings, Linda Walsh!

I sometimes use "rmdir *" to clean up empty dir's.

There's a known issue about difference in Windows and *NIX handling of directory removal in many cases. I would say, you drop such practice and be more explicit in your actions.


I don't know what issue is such, but, you can try:


To print or delete empty directories only in present level try:
 find ./ -maxdepth 1 -empty -type d -print
 find ./ -maxdepth 1 -empty -type d -delete

To search or delete recursively folders only remove the maxdepth
 find ./ -empty -type d -print
 find ./ -empty -type d -delete

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]