I am using node in Windows environment.
When I use fs.unlinkSync(fileName), it seems to work. 
After the unlinkSync statement is executed, if I do a 
fs.existsSync(filename) it returns false indicating the file does not 
exists but when I go to the physical drive I could still see the file.
At this point of time if I try and delete the file manually it throws 
Access denied.
However, the file is automatically removed from the file system only when I 
stop the executing node script file. 
Is this the expected behavior?


Thanks,
M


On Tuesday, November 15, 2011 10:53:05 AM UTC+5:30, Matt Sergeant wrote:
>
> On Mon, Nov 14, 2011 at 7:00 PM, Diogo Resende 
> <[email protected]<javascript:>
> > wrote:
>
>> On Mon, 14 Nov 2011 12:32:06 -0800 (PST), robertj wrote:
>>
>>> could it be that fs.writeFileSync does not release its file handle?
>>>
>>> I can delete the files from another process called after ending the
>>> process that created the file via unlinkSync
>>>
>>>  
>> node's unlink*() is not the same as php's unlink()
>>
>> - node: remove link
>> - php: remove file
>>
>
> You are wrong. They are the same.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to