Re: File renaming
- From: Daniel Tryba <partmapsswen@xxxxxxxxxxxxxxxx>
- Date: 02 May 2005 13:40:51 GMT
Dave Turner <nobody@xxxxxxxxxxxxx> wrote:
> Why try to intentionally break things? Always close file handles before
> moving files, just swap your last two lines of code around
Why answer if you have (apprently) no idea how a unix filesystem works!
>> Will mango contain upto date data ? Or will the rename cause it to
>> contain incomplete data ?
I'm to lame to test but it should work.
A rename will only change the "name of the inode", since the inode is
already opened any (unflushed) buffers still point to the file formerly
known as hello.
>> (I could have checked, but don't have Linux with me.)
never leave home without a (eg knoppix) live CD :)
.
- References:
- File renaming
- From: siliconmike
- Re: File renaming
- From: Dave Turner
- File renaming
- Prev by Date: modify the picture resolution
- Next by Date: How to write string in a file to the next line
- Previous by thread: Re: File renaming
- Next by thread: Re: File renaming
- Index(es):
Relevant Pages
|