delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/22/05:01:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Alec Istomin <amex AT istomin DOT de>
Subject: Re: Disable recycle bin for rm command
Date: Sat, 21 Aug 2010 17:02:16 +0000 (UTC)
Lines: 44
Message-ID: <loom.20100821T185819-515@post.gmane.org>
References: <1278577665 DOT 2347 DOT 16 DOT camel AT vucko>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Urban Purkat <urban.purkat <at> topit.si> writes:

> 
> Hi!
> 
> I see that the rm command uses the recycle bin to remove files.
> On What's new and what changed in Cygwin 1.7 -> File Access related
> changes (http://cygwin.com/cygwin-ug-net/ov-new1.7.html#ov-new1.7-file)
> I read
> 
> "unlink(2) and rmdir(2) try very hard to remove files/directories even
> if they are currently accessed or locked. This is done by utilizing the
> hidden recycle bin directories and marking the files for deletion."
> 
> I was testing this functionality on Win2k8 and figured out that rm uses
> recycle bin even the recycle bin is disabled for specific partition.
> Such behavior does not fit the restrictions I have on my system.
> 
> Is there any way to disable this recycle bin functionality so the rm
> works like before this change?
> 
> It would also be a nice feature that Cygwin respects the Recycle bin
> settings in case it is disabled.
> 
> I was checking the FAQ and mailing list archives and I could not find
> the answer.
> 
> TIA,
> Urban
> 
> 

I was not able to find a way to disable the cygwin's own recycle.bin and
understand when exactly it gets populated. I'd really like an option to disable
the recycle.bin at all.

In the mean time I'm trying to disable the directory creation all together, ie:
touch \*RECYCLE.BIN\*

Will keep an eye if it actually helps or breaks things:)

Thanks,
 Alec



--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019