Switch to unified view

a/src/utils/pathut.h b/src/utils/pathut.h
...
...
43
extern std::string path_tildexpand(const std::string &s);
43
extern std::string path_tildexpand(const std::string &s);
44
/// Use getcwd() to make absolute path if needed. Beware: ***this can fail***
44
/// Use getcwd() to make absolute path if needed. Beware: ***this can fail***
45
/// we return an empty path in this case.
45
/// we return an empty path in this case.
46
extern std::string path_absolute(const std::string &s);
46
extern std::string path_absolute(const std::string &s);
47
/// Clean up path by removing duplicated / and resolving ../ + make it absolute
47
/// Clean up path by removing duplicated / and resolving ../ + make it absolute
48
extern std::string path_canon(const std::string &s);
48
extern std::string path_canon(const std::string &s, const std::string *cwd=0);
49
/// Use glob(3) to return the file names matching pattern inside dir
49
/// Use glob(3) to return the file names matching pattern inside dir
50
extern std::vector<std::string> path_dirglob(const std::string &dir, 
50
extern std::vector<std::string> path_dirglob(const std::string &dir, 
51
                   const std::string pattern);
51
                   const std::string pattern);
52
/// Encode according to rfc 1738
52
/// Encode according to rfc 1738
53
extern std::string url_encode(const std::string& url, 
53
extern std::string url_encode(const std::string& url,