|
a/src/utils/pathut.h |
|
b/src/utils/pathut.h |
|
... |
|
... |
65 |
|
65 |
|
66 |
/// Return the host+path part of an url. This is not a general
|
66 |
/// Return the host+path part of an url. This is not a general
|
67 |
/// routine, it does the right thing only in the recoll context
|
67 |
/// routine, it does the right thing only in the recoll context
|
68 |
extern std::string url_gpath(const std::string& url);
|
68 |
extern std::string url_gpath(const std::string& url);
|
69 |
|
69 |
|
|
|
70 |
/// Same but, in the case of a Windows local path, also turn "c:/" into
|
|
|
71 |
/// "/c/" This should be used only for splitting the path in rcldb, it
|
|
|
72 |
/// would better be local in there, but I prefer to keep all the
|
|
|
73 |
/// system-specific path stuff in pathut
|
|
|
74 |
extern std::string url_gpathS(const std::string& url);
|
|
|
75 |
|
70 |
/// Stat parameter and check if it's a directory
|
76 |
/// Stat parameter and check if it's a directory
|
71 |
extern bool path_isdir(const std::string& path);
|
77 |
extern bool path_isdir(const std::string& path);
|
72 |
|
78 |
|
73 |
/// Retrieve file size
|
79 |
/// Retrieve file size
|
74 |
extern long long path_filesize(const std::string& path);
|
80 |
extern long long path_filesize(const std::string& path);
|