10#define __WVFILEUTILS_H
13#include "wvstringlist.h"
18int wvmkdir(WvStringParm _dir,
int create_mode = 0700);
27int mkdirp(WvStringParm _dir,
int create_mode = 0700);
34void rm_rf(WvStringParm _dir);
43bool fcopy(WvStringParm src, WvStringParm dst);
44bool fcopy(WvStringParm srcdir, WvStringParm dstdir, WvStringParm relname);
51bool ftouch(WvStringParm file, time_t mtime = 0);
57WvString wvreadlink(WvStringParm path);
67bool samedate(WvStringParm file1, WvStringParm file2);
68bool samedate(WvStringParm dir1, WvStringParm dir2, WvStringParm relname);
75bool wvfnmatch(
WvStringList &patterns, WvStringParm name,
int flags = 0);
88WvString wvtmpfilename(WvStringParm prefix);
94int wvchmod(
const char *path, mode_t mode);
This is a WvList of WvStrings, and is a really handy way to parse strings.
WvString is an implementation of a simple and efficient printable-string class.