> --
> 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 nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
node's unlink*() is not the same as php's unlink()
- node: remove link
- php: remove file
---
Diogo R.
They should be the same, shouldn't they? According to http://nodejs.org/docs/v0.6.1/api/fs.html#fs.unlink node's unlink is "Asynchronous unlink(2)". And according to "man 2 unlink" it "removes the link named by path from its directory and decrements the link count of the file which was referenced by the link. If that decrement reduces the link count of the file to zero, and no process has the file open, then all resources associated with the file are reclaimed." According to http://php.net/unlink php's unlink is "Similar to the Unix C unlink() function". The point is, "unlink" is how you remove a file.
I'm sorry, I was really convinced there was an fs.remove()
and fs.unlink() :P
---
Diogo R.