|
a/src/utils/copyfile.h |
|
b/src/utils/copyfile.h |
|
... |
|
... |
17 |
#ifndef _COPYFILE_H_INCLUDED_
|
17 |
#ifndef _COPYFILE_H_INCLUDED_
|
18 |
#define _COPYFILE_H_INCLUDED_
|
18 |
#define _COPYFILE_H_INCLUDED_
|
19 |
/* @(#$Id: copyfile.h,v 1.2 2006-01-30 11:15:28 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: copyfile.h,v 1.2 2006-01-30 11:15:28 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
|
|
22 |
using std::string;
|
22 |
|
23 |
|
23 |
enum CopyfileFlags {COPYFILE_NONE = 0, COPYFILE_NOERRUNLINK = 1};
|
24 |
enum CopyfileFlags {COPYFILE_NONE = 0, COPYFILE_NOERRUNLINK = 1};
|
24 |
|
25 |
|
25 |
extern bool copyfile(const char *src, const char *dst, std::string &reason,
|
26 |
extern bool copyfile(const char *src, const char *dst, string &reason,
|
26 |
int flags = 0);
|
27 |
int flags = 0);
|
27 |
|
28 |
|
|
|
29 |
// Try to rename, copy/unlink source if this fails (different devs)
|
|
|
30 |
extern bool renameormove(const char *src, const char *dst, string &reason);
|
|
|
31 |
|
28 |
#endif /* _COPYFILE_H_INCLUDED_ */
|
32 |
#endif /* _COPYFILE_H_INCLUDED_ */
|