SNAP Library 2.1, User Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <fl.h>
Static Public Member Functions | |
static bool | Exists (const TStr &FNm) |
static void | Copy (const TStr &SrcFNm, const TStr &DstFNm, const bool &ThrowExceptP=true, const bool &FailIfExistsP=false) |
static void | Del (const TStr &FNm, const bool &ThrowExceptP=true) |
static void | DelWc (const TStr &WcStr, const bool &RecurseDirP=false) |
static void | Rename (const TStr &SrcFNm, const TStr &DstFNm) |
static TStr | GetUniqueFNm (const TStr &FNm) |
static uint64 | GetSize (const TStr &FNm) |
static uint64 | GetCreateTm (const TStr &FNm) |
static uint64 | GetLastAccessTm (const TStr &FNm) |
static uint64 | GetLastWriteTm (const TStr &FNm) |
Static Public Attributes | |
static const TStr | TxtFExt = ".Txt" |
static const TStr | HtmlFExt = ".Html" |
static const TStr | HtmFExt = ".Htm" |
static const TStr | GifFExt = ".Gif" |
static const TStr | JarFExt = ".Jar" |
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] |
void TFile::DelWc | ( | const TStr & | WcStr, |
const bool & | RecurseDirP = false |
||
) | [static] |
bool TFile::Exists | ( | const TStr & | FNm | ) | [static] |
static uint64 TFile::GetCreateTm | ( | const TStr & | FNm | ) | [static] |
static uint64 TFile::GetLastAccessTm | ( | const TStr & | FNm | ) | [static] |
static uint64 TFile::GetLastWriteTm | ( | const TStr & | FNm | ) | [static] |
static uint64 TFile::GetSize | ( | const TStr & | FNm | ) | [static] |
TStr TFile::GetUniqueFNm | ( | const TStr & | FNm | ) | [static] |
Definition at line 1059 of file fl.cpp.
{ // <name>.#.txt --> <name>.<num>.txt int Cnt=1; int ch; TStr NewFNm; TStr TmpFNm=FNm; if (FNm.SearchCh('#') == -1) { for (ch = FNm.Len()-1; ch >= 0; ch--) if (FNm[ch] == '.') break; if (ch != -1) TmpFNm.InsStr(ch, ".#"); else TmpFNm += ".#"; } forever{ NewFNm=TmpFNm; NewFNm.ChangeStr("#", TStr::Fmt("%03d", Cnt)); Cnt++; if (!TFile::Exists(NewFNm)){break;} } return NewFNm; }
void TFile::Rename | ( | const TStr & | SrcFNm, |
const TStr & | DstFNm | ||
) | [static] |
const TStr TFile::GifFExt = ".Gif" [static] |
const TStr TFile::HtmFExt = ".Htm" [static] |
const TStr TFile::HtmlFExt = ".Html" [static] |
const TStr TFile::JarFExt = ".Jar" [static] |
const TStr TFile::TxtFExt = ".Txt" [static] |