#include <fl.h>
Definition at line 587 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 1198 of file fl.cpp.
1201 remove(FNm.
CStr())==0,
1202 "Error removing file '"+FNm+
"'.");
#define EAssertR(Cond, MsgStr)
void TFile::DelWc |
( |
const TStr & |
WcStr, |
|
|
const bool & |
RecurseDirP = false |
|
) |
| |
|
static |
Definition at line 1208 of file fl.cpp.
1212 while (FFile.Next(FNm)){
1215 for (
int FNmN=0; FNmN<FNmV.
Len(); FNmN++){
1216 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.
Vector is a sequence TVal objects representing an array that can change in size.
bool TFile::Exists |
( |
const TStr & |
FNm | ) |
|
|
static |
Definition at line 1100 of file fl.cpp.
1101 if (FNm.
Empty()) {
return false; }
1103 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 1225 of file fl.cpp.
1230 for (ch = FNm.
Len()-1; ch >= 0; ch--)
if (FNm[ch] ==
'.')
break;
1231 if (ch != -1) TmpFNm.
InsStr(ch,
".#");
1232 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 1219 of file fl.cpp.
1221 rename(SrcFNm.
CStr(), DstFNm.
CStr())==0,
1222 "Error renaming file '"+SrcFNm+
"' to "+DstFNm+
"'.");
#define EAssertR(Cond, MsgStr)
const TStr TFile::GifFExt =".Gif" |
|
static |
Definition at line 592 of file fl.h.
const TStr TFile::HtmFExt =".Htm" |
|
static |
Definition at line 591 of file fl.h.
const TStr TFile::HtmlFExt =".Html" |
|
static |
Definition at line 590 of file fl.h.
const TStr TFile::JarFExt =".Jar" |
|
static |
Definition at line 593 of file fl.h.
const TStr TFile::TxtFExt =".Txt" |
|
static |
Definition at line 589 of file fl.h.
The documentation for this class was generated from the following files: