WvStreams
Main Page
Modules
Classes
Files
File List
File Members
include
wvfileutils.h
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 1997-2005 Net Integration Technologies, Inc.
4
*
5
* Various little file functions...
6
*
7
*/
8
9
#ifndef __WVFILEUTILS_H
10
#define __WVFILEUTILS_H
11
12
#include "wvstring.h"
13
#include "wvstringlist.h"
14
18
int
wvmkdir(
WvStringParm
_dir,
int
create_mode = 0700);
19
27
int
mkdirp(
WvStringParm
_dir,
int
create_mode = 0700);
28
34
void
rm_rf(
WvStringParm
_dir);
35
43
bool
fcopy(
WvStringParm
src,
WvStringParm
dst);
44
bool
fcopy(
WvStringParm
srcdir,
WvStringParm
dstdir,
WvStringParm
relname);
45
51
bool
ftouch(
WvStringParm
file, time_t mtime = 0);
52
57
WvString
wvreadlink(
WvStringParm
path);
58
67
bool
samedate(
WvStringParm
file1,
WvStringParm
file2);
68
bool
samedate(
WvStringParm
dir1,
WvStringParm
dir2,
WvStringParm
relname);
69
74
#ifndef _WIN32
75
bool
wvfnmatch(
WvStringList
&patterns,
WvStringParm
name,
int
flags = 0);
76
#endif
77
81
FILE *wvtmpfile();
82
83
/* Returns a unique filename suitable for a temporary file. Obviously there is
84
* the caveat that someone else may claim this file name before you open it:
85
* do not use this routine where that race may be a real concern (this would
86
* apply only to security-sensitive code)
87
*/
88
WvString
wvtmpfilename(
WvStringParm
prefix);
89
90
#ifndef _WIN32
91
94
int
wvchmod(
const
char
*path, mode_t mode);
95
#endif
96
100
#ifndef _WIN32
101
mode_t get_umask();
102
#endif
103
104
#endif // __WVFILEUTILS_H
Generated on Fri Mar 14 2014 14:08:52 for WvStreams by
1.8.1.2