unix - unlink vs remove in c++ -


What is the difference between the extract and unlink function in C ++? In addition to the fact that unlink Unix is ​​specific (as told by Chris), we created POSIX The manual reads:

If path is not the name of a directory, then remove (path) is equal to unlink (path). If path gives the name of a directory, then remove (path) is equal to rmdir (path).

For Directory-Pass Unlink , we read:

The path logic should not be a directory name unless That there are no proper privileges in this process and supports the use of unlink () on the implementation directories. (...) Applications should use rmdir () to extract a directory.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -