Snapshot speed on managing files

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jan 12 19:31:00 GMT 2007


On Jan 12 10:34, Brian Ford wrote:
> On Fri, 12 Jan 2007, Corinna Vinschen wrote:
> 
> > Current CVS contains a change which is probably the cause for that.
> > Before deleting a file, the file is moved to the recycle bin.
> 
> Couldn't we make this conditional only if a "regular" delete fails because
> the file is in use?  Would it then only penalize deletes of open files?

It wouldn't work.  The problem is that the delete does not fail.  Just
the file does not disappear.  And if you deleted the file and *then*
notice that it didn't disappear, Windows does not allow you to move
it anymore.  So, either you move it right before deleting, or you're
stuck.

Two points, though:

- P's to speed up the code are TC ;)
- If somebody figures out a way to learn if a file has opened handles on
  it, quick and maybe in native NT code, I'd be most grateful.


Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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



More information about the Cygwin mailing list