Go to the documentation of this file.
42 #include <sys/types.h>
61 bool env(
const word&);
65 string getEnv(
const word&);
68 bool setEnv(
const word&
name,
const string& value,
const bool overwrite);
87 bool chDir(
const fileName& dir);
103 fileName
findEtcFile(
const fileName&,
bool mandatory=
false);
107 bool mkDir(
const fileName&, mode_t=0777);
110 bool chMod(
const fileName&,
const mode_t);
113 mode_t
mode(
const fileName&);
120 bool exists(
const fileName&,
const bool checkGzip=
true);
123 bool isDir(
const fileName&);
127 bool isFile(
const fileName&,
const bool checkGzip=
true);
140 const bool filtergz=
true
144 bool cp(
const fileName& src,
const fileName& dst);
147 bool ln(
const fileName& src,
const fileName& dst);
150 bool mv(
const fileName& src,
const fileName& dst);
154 bool mvBak(
const fileName&,
const std::string& ext =
"bak");
157 bool rm(
const fileName&);
160 bool rmDir(
const fileName&);
163 unsigned int sleep(
const unsigned int);
169 bool ping(
const word&,
const label port,
const label timeOut);
172 bool ping(
const word&,
const label timeOut=10);
175 int system(
const string& command);