43 bool followlinks=
false);
62 mGlobal(Basic)
bool rename(
const char* oldname,
const char* newname);
63 mGlobal(Basic)
bool copy(
const char* from,
const char* to,
69 bool filesonly=
false);
71 mGlobal(Basic)
bool remove(
const char*);
80 bool followlink=
true);
91 bool lastmodif=
true );
109 , maxnrlines_(vs==
Table ? 500 : 10000) {}
bool rename(const char *oldname, const char *newname)
bool isDirEmpty(const char *)
Interface for several file and directory related services.
Definition: file.h:27
bool editable_
only if possible
Definition: file.h:118
bool isLink(const char *)
static const char * sKeyStyle()
Definition: file.h:113
const char * defDateTimeFmt()
bool isFile(const char *)
bool launchViewer(const char *, const ViewPars &vp=ViewPars())
bool makeWritable(const char *, bool yesno, bool recursive)
Executor * getRecursiveCopier(const char *from, const char *to)
T to(const F &fr)
Definition: convert.h:33
const char * timeLastModified(const char *filenm, const char *fmt=Time::defDateTimeFmt())
bool makeExecutable(const char *, bool yesno)
#define mGlobal(module)
Definition: commondefs.h:163
#define mDeclareNameSpaceEnumUtils(mod, enm)
Definition: enums.h:274
bool copy(const char *from, const char *to, BufferString *errmsg=0)
#define od_int64
Definition: plftypes.h:36
ViewStyle style_
Definition: file.h:116
bool isHidden(const char *)
bool isExecutable(const char *)
bool createDir(const char *)
void hide(const char *, bool yn)
only Windows
Executor * getRecursiveDeleter(const char *dirnm, const BufferStringSet *externallist=0, bool filesonly=false)
Set of BufferString objects.
Definition: bufstringset.h:28
bool changeDir(const char *path)
bool isFileInUse(const char *fnm)
BufferString getFileSizeString(int64_t fileszinkb)
const char * linkValue(const char *linkname)
ViewStyle
Definition: file.h:99
const char * getTempPath()
bool getContent(const char *, BufferString &)
Definition: geom2dascio.h:21
static const char * sKeyFile()
Definition: file.h:111
bool isDirectory(const char *)
bool saveCopy(const char *from, const char *to)
static const char * sKeyMaxLines()
Definition: file.h:112
int64_t getFileSize(const char *fnm, bool followlink=true)
bytes
const char * timeCreated(const char *filenm, const char *fmt=Time::defDateTimeFmt())
bool removeDir(const char *)
const char * getCurrentPath()
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool isEmpty(const char *)
int64_t getKbSize(const char *)
bool resize(const char *, int64_t)
const char * linkTarget(const char *linkname)
const char * getHomePath()
bool isWritable(const char *)
const char * getRootPath(const char *path)
static const char * sKeyEdit()
Definition: file.h:114
bool copyDir(const char *from, const char *to, BufferString *errmsg=0)
ViewPars(ViewStyle vs=Text)
Definition: file.h:106
int maxnrlines_
max nr bytes when Bin
Definition: file.h:117
const char * getCanonicalPath(const char *)
const char * getRelativePath(const char *reltodir, const char *fnm)
#define mClass(module)
Definition: commondefs.h:164
bool createLink(const char *from, const char *to)
bool exists(const char *)
bool setPermissions(const char *, const char *perms, bool recursive)
int64_t getTimeInSeconds(const char *, bool modif=true)
const char * getAbsolutePath(const char *dir, const char *relfnm)
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
void makeRecursiveFileList(const char *dir, BufferStringSet &filelist, bool followlinks=false)
int64_t getTimeInMilliSeconds(const char *fnm, bool lastmodif=true)