From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24009 invoked by alias); 22 Jul 2012 14:58:27 -0000 Received: (qmail 24000 invoked by uid 22791); 22 Jul 2012 14:58:25 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from blu0-omc1-s33.blu0.hotmail.com (HELO blu0-omc1-s33.blu0.hotmail.com) (65.55.116.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Jul 2012 14:58:12 +0000 Received: from BLU0-SMTP87 ([65.55.116.9]) by blu0-omc1-s33.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 22 Jul 2012 07:58:11 -0700 Message-ID: Received: from [127.0.0.1] ([77.27.91.195]) by BLU0-SMTP87.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 22 Jul 2012 07:58:11 -0700 Date: Sun, 22 Jul 2012 14:58:00 -0000 From: Aaron Schneider User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/) References: <500B961D.6050303@tlinx.org> <333998685.20120722180817@mtu-net.ru> In-Reply-To: <333998685.20120722180817@mtu-net.ru> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-07/txt/msg00483.txt.bz2 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