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:
parent
17475df100
commit
1d3594cc9b
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user