Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not to mention if you did have a large tmp file that you actually want to persist to a different directory that is on disk you now have to wait for the damn file to be copied from memory to disk vs a single atomic rename operation, this can have major implications depending on the context.


Rename doesn't work across filesystems. You just create a new file and do a regular copy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: