13
0

Add docs for PBD::sys::equivalent_paths

git-svn-id: svn://localhost/ardour2/branches/3.0@12858 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2012-06-23 05:08:01 +00:00
parent 17475df100
commit 1d3594cc9b
2 changed files with 8 additions and 2 deletions

View File

@ -219,7 +219,6 @@ get_absolute_path (const path & p)
return f->get_path ();
}
/** @return true if a and b have the same inode */
bool
equivalent_paths (const std::string& a, const std::string& b)
{

View File

@ -192,7 +192,14 @@ path get_absolute_path (const path &);
bool path_is_within (const path &, path);
bool equivalent_paths (const std::string &, const std::string &);
/**
* @return true if p1 and p2 both resolve to the same file
* @param p1 a file path.
* @param p2 a file path.
*
* Uses g_stat to check for identical st_dev and st_ino values.
*/
bool equivalent_paths (const std::string &p1, const std::string &p2);
} // namespace sys