Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628125
FileUtil.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
982 B
Referenced Files
None
Subscribers
None
FileUtil.h
View Options
#ifndef FILEUTIL_H
#define FILEUTIL_H
#include
<string>
#include
<vector>
#include
<QString>
class
FileUtil
{
public
:
struct
DirEnt
{
std
::
string
name
;
bool
isdir
=
false
;
};
static
std
::
string
getcwd
();
static
void
mkdir
(
std
::
string
const
&
dir
,
int
perm
=
0777
);
static
void
rmdir
(
std
::
string
const
&
dir
);
static
bool
chdir
(
std
::
string
const
&
dir
);
static
void
rmfile
(
std
::
string
const
&
path
);
static
void
rmtree
(
std
::
string
const
&
path
);
static
void
mv
(
std
::
string
const
&
src
,
std
::
string
const
&
dst
);
static
void
getdirents
(
std
::
string
const
&
loc
,
std
::
vector
<
DirEnt
>
*
out
);
static
bool
isdir
(
std
::
string
const
&
path
);
static
std
::
string
which
(
std
::
string
const
&
name
,
std
::
vector
<
std
::
string
>
*
out
=
nullptr
);
static
std
::
string
normalize_path_separator
(
std
::
string
const
&
s
);
static
void
qgetdirents
(
const
QString
&
loc
,
std
::
vector
<
DirEnt
>
*
out
);
static
std
::
string
qwhich
(
const
std
::
string
&
name
,
std
::
vector
<
std
::
string
>
*
out
);
};
#endif
// FILEUTIL_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 3:17 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122219
Default Alt Text
FileUtil.h (982 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline