|
a/src/utils/pathut.h |
|
b/src/utils/pathut.h |
|
... |
|
... |
53 |
extern string url_encode(const string& url,
|
53 |
extern string url_encode(const string& url,
|
54 |
string::size_type offs = 0);
|
54 |
string::size_type offs = 0);
|
55 |
/// Transcode to utf-8 if possible or url encoding, for display.
|
55 |
/// Transcode to utf-8 if possible or url encoding, for display.
|
56 |
extern bool printableUrl(const string &fcharset,
|
56 |
extern bool printableUrl(const string &fcharset,
|
57 |
const string &in, string &out);
|
57 |
const string &in, string &out);
|
58 |
// Convert to file path if url is like file://
|
58 |
//// Convert to file path if url is like file://. This modifies the
|
|
|
59 |
//// input (and returns a copy for convenience)
|
59 |
extern string fileurltolocalpath(string url);
|
60 |
extern string fileurltolocalpath(string url);
|
|
|
61 |
/// Test for file:/// url
|
|
|
62 |
extern bool urlisfileurl(const string& url);
|
60 |
|
63 |
|
61 |
/// Return the host+path part of an url. This is not a general
|
64 |
/// Return the host+path part of an url. This is not a general
|
62 |
/// routine, it does the right thing only in the recoll context
|
65 |
/// routine, it does the right thing only in the recoll context
|
63 |
extern string url_gpath(const string& url);
|
66 |
extern string url_gpath(const string& url);
|
64 |
|
67 |
|
|
... |
|
... |
71 |
long *avmbs = 0 // Mbs available to non-superuser
|
74 |
long *avmbs = 0 // Mbs available to non-superuser
|
72 |
);
|
75 |
);
|
73 |
|
76 |
|
74 |
/// Create temporary directory
|
77 |
/// Create temporary directory
|
75 |
extern bool maketmpdir(string& tdir, string& reason);
|
78 |
extern bool maketmpdir(string& tdir, string& reason);
|
|
|
79 |
|
|
|
80 |
/// mkdir -p
|
|
|
81 |
extern bool makepath(const string& path);
|
76 |
|
82 |
|
77 |
/// Temporary file class
|
83 |
/// Temporary file class
|
78 |
class TempFileInternal {
|
84 |
class TempFileInternal {
|
79 |
public:
|
85 |
public:
|
80 |
TempFileInternal(const string& suffix);
|
86 |
TempFileInternal(const string& suffix);
|