#include <fl.h>
Definition at line 640 of file fl.h.
static void TFile::Copy |
( |
const TStr & |
SrcFNm, |
|
|
const TStr & |
DstFNm, |
|
|
const bool & |
ThrowExceptP = true , |
|
|
const bool & |
FailIfExistsP = false |
|
) |
| |
|
static |
void TFile::Del |
( |
const TStr & |
FNm, |
|
|
const bool & |
ThrowExceptP = true |
|
) |
| |
|
static |
Definition at line 1254 of file fl.cpp.
1257 remove(FNm.
CStr())==0,
1258 "Error removing file '"+FNm+
"'.");
#define EAssertR(Cond, MsgStr)
void TFile::DelWc |
( |
const TStr & |
WcStr, |
|
|
const bool & |
RecurseDirP = false |
|
) |
| |
|
static |
Definition at line 1264 of file fl.cpp.
1268 while (FFile.Next(FNm)){
1271 for (
int FNmN=0; FNmN<FNmV.
Len(); FNmN++){
1272 Del(FNmV[FNmN],
false);}
TSizeTy Len() const
Returns the number of elements in the vector.
static void Del(const TStr &FNm, const bool &ThrowExceptP=true)
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
bool TFile::Exists |
( |
const TStr & |
FNm | ) |
|
|
static |
Definition at line 1156 of file fl.cpp.
1157 if (FNm.
Empty()) {
return false; }
1159 TFIn FIn(FNm, DoExists);
static uint64 TFile::GetCreateTm |
( |
const TStr & |
FNm | ) |
|
|
static |
static uint64 TFile::GetLastAccessTm |
( |
const TStr & |
FNm | ) |
|
|
static |
static uint64 TFile::GetLastWriteTm |
( |
const TStr & |
FNm | ) |
|
|
static |
TStr TFile::GetUniqueFNm |
( |
const TStr & |
FNm | ) |
|
|
static |
Definition at line 1281 of file fl.cpp.
1286 for (ch = FNm.
Len()-1; ch >= 0; ch--)
if (FNm[ch] ==
'.')
break;
1287 if (ch != -1) TmpFNm.
InsStr(ch,
".#");
1288 else TmpFNm +=
".#";
int SearchCh(const char &Ch, const int &BChN=0) const
static bool Exists(const TStr &FNm)
static TStr Fmt(const char *FmtStr,...)
void InsStr(const int &BChN, const TStr &Str)
int ChangeStr(const TStr &SrcStr, const TStr &DstStr, const int &BChN=0)
void TFile::Rename |
( |
const TStr & |
SrcFNm, |
|
|
const TStr & |
DstFNm |
|
) |
| |
|
static |
Definition at line 1275 of file fl.cpp.
1277 rename(SrcFNm.
CStr(), DstFNm.
CStr())==0,
1278 "Error renaming file '"+SrcFNm+
"' to "+DstFNm+
"'.");
#define EAssertR(Cond, MsgStr)
const TStr TFile::GifFExt =".Gif" |
|
static |
Definition at line 645 of file fl.h.
const TStr TFile::HtmFExt =".Htm" |
|
static |
Definition at line 644 of file fl.h.
const TStr TFile::HtmlFExt =".Html" |
|
static |
Definition at line 643 of file fl.h.
const TStr TFile::JarFExt =".Jar" |
|
static |
Definition at line 646 of file fl.h.
const TStr TFile::TxtFExt =".Txt" |
|
static |
Definition at line 642 of file fl.h.
The documentation for this class was generated from the following files: