Move doc for PBD::sys::path_is_within to header
git-svn-id: svn://localhost/ardour2/branches/3.0@12860 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fb76229f7b
commit
a239047380
@ -230,10 +230,6 @@ equivalent_paths (const std::string& a, const std::string& b)
|
||||
return (rA == 0 && rB == 0 && bA.st_dev == bB.st_dev && bA.st_ino == bB.st_ino);
|
||||
}
|
||||
|
||||
/** Find out if `needle' is a file or directory within the
|
||||
* directory `haystack'.
|
||||
* @return true if it is.
|
||||
*/
|
||||
bool
|
||||
path_is_within (std::string const & haystack, std::string needle)
|
||||
{
|
||||
|
@ -190,6 +190,11 @@ std::string extension (const path& p);
|
||||
|
||||
path get_absolute_path (const path &);
|
||||
|
||||
/**
|
||||
* Find out if `needle' is a file or directory within the
|
||||
* directory `haystack'.
|
||||
* @return true if it is.
|
||||
*/
|
||||
bool path_is_within (const std::string &, std::string);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user