|
a/src/utils/copyfile.h |
|
b/src/utils/copyfile.h |
|
... |
|
... |
32 |
* is set.
|
32 |
* is set.
|
33 |
*/
|
33 |
*/
|
34 |
extern bool copyfile(const char *src, const char *dst, std::string &reason,
|
34 |
extern bool copyfile(const char *src, const char *dst, std::string &reason,
|
35 |
int flags = 0);
|
35 |
int flags = 0);
|
36 |
|
36 |
|
|
|
37 |
/** Save c++ string to file */
|
|
|
38 |
extern bool stringtofile(const std::string& dt, const char *dst,
|
|
|
39 |
std::string& reason, int flags = 0);
|
|
|
40 |
|
37 |
/** Try to rename src. If this fails (different devices) copy then unlink src */
|
41 |
/** Try to rename src. If this fails (different devices) copy then unlink src */
|
38 |
extern bool renameormove(const char *src, const char *dst, std::string &reason);
|
42 |
extern bool renameormove(const char *src, const char *dst, std::string &reason);
|
39 |
|
43 |
|
40 |
#endif /* _COPYFILE_H_INCLUDED_ */
|
44 |
#endif /* _COPYFILE_H_INCLUDED_ */
|