mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
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
2 changed files with 8 additions and 2 deletions
|
|
@ -219,7 +219,6 @@ get_absolute_path (const path & p)
|
||||||
return f->get_path ();
|
return f->get_path ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return true if a and b have the same inode */
|
|
||||||
bool
|
bool
|
||||||
equivalent_paths (const std::string& a, const std::string& b)
|
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 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
|
} // namespace sys
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue