From: Jonathan Stowe Date: 20:00 on 18 Dec 2006 Subject: [Fwd: Re: Delete a file THAT big? Surely you are joking.] On Mon, 2006-12-18 at 20:11 +0100, A. Pagaltzis wrote: > * Yossi Kreinin <yossi.kreinin@xxxxxxxx.xxx> [2006-12-18 18:35]: > > I'm a programmer. My program created a big file. Give me the > > POWER to *DELETE* *MY* *FILE*!! > > On Windows, you'd be told the file is busy and it wouldn't be > deleted. Which is so obviously totally inferior to removing the name of the file from the directory but leaving the file to fill up the disk. Sure it allows you to do big, clever, obscure and POWERFUL things that mere mortals can't understand, but it doesn't help in freeing space on the disk. The real windows hate would be that it doesn't tell you which program it is that has the file open, nor provide any tools out of the box that would help you find that out, but hey it least it has an API that can do that reasonably quickly - on Unix you have to grovel through the filesystem or the kernel's list of file descriptors to find that out... /J\
From: Jonathan Stowe Date: 13:09 on 04 Mar 2004 Subject: Gnu findutils So how long has samba been around, how long has Windows had long filenames and encourage people to create files with spaces in (yeah, yeah I know but that is a totally different piece of hate.) It's not entirely impossible to create filenames with spaces under Unix (why you should want to is another matter). Then why do the stupid poxy findutils not make any allowance for this and not give me: [jonathan@orpheus Documentation]$ find . -type d | xargs chmod go+rx chmod: failed to get attributes of `./Database': No such file or directory chmod: failed to get attributes of `Schema': No such file or directory chmod: failed to get attributes of `./Document': No such file or directory chmod: failed to get attributes of `System': No such file or directory chmod: failed to get attributes of `./ID': No such file or directory chmod: failed to get attributes of `generation': No such file or directory chmod: failed to get attributes of `./SCP': No such file or directory chmod: failed to get attributes of `SDK': No such file or directory and so forth. Oh yes I know there are ways to get around this. But 'find' knows it has a filename there which has a space in it and 'xargs' is designed to work with 'find' so why can't they just sort themselves out and deal with these as filenames rather than a bunch of space delimited tokens. I despair. /J\
Generated at 10:28 on 16 Apr 2008 by mariachi