unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

filefn.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  MKDIR_CODE { MKDIR_SUCCESS , MKDIR_ERROR , MKDIR_BADPATH }
 
enum  CALCFSUM_FLAGS { CALCFSUM_SHOWTEXT =1 , CALCFSUM_SHOWPERCENT =2 , CALCFSUM_SHOWPROGRESS =4 , CALCFSUM_CURPOS =8 }
 

Functions

MKDIR_CODE MakeDir (const wchar *Name, bool SetAttr, uint Attr)
 
bool CreatePath (const wchar *Path, bool SkipLastName, bool Silent)
 
void SetDirTime (const wchar *Name, RarTime *ftm, RarTime *ftc, RarTime *fta)
 
bool IsRemovable (const wchar *Name)
 
int64 GetFreeDisk (const wchar *Name)
 
bool FileExist (const wchar *Name)
 
bool WildFileExist (const wchar *Name)
 
bool IsDir (uint Attr)
 
bool IsUnreadable (uint Attr)
 
bool IsLink (uint Attr)
 
void SetSFXMode (const wchar *FileName)
 
void EraseDiskContents (const wchar *FileName)
 
bool IsDeleteAllowed (uint FileAttr)
 
void PrepareToDelete (const wchar *Name)
 
uint GetFileAttr (const wchar *Name)
 
bool SetFileAttr (const wchar *Name, uint Attr)
 
void CalcFileSum (File *SrcFile, uint *CRC32, byte *Blake2, uint Threads, int64 Size=INT64NDF, uint Flags=0)
 
bool RenameFile (const wchar *SrcName, const wchar *DestName)
 
bool DelFile (const wchar *Name)
 
bool DelDir (const wchar *Name)
 

Enumeration Type Documentation

◆ CALCFSUM_FLAGS

Enumerator
CALCFSUM_SHOWTEXT 
CALCFSUM_SHOWPERCENT 
CALCFSUM_SHOWPROGRESS 
CALCFSUM_CURPOS 

Definition at line 34 of file filefn.hpp.

◆ MKDIR_CODE

enum MKDIR_CODE
Enumerator
MKDIR_SUCCESS 
MKDIR_ERROR 
MKDIR_BADPATH 

Definition at line 4 of file filefn.hpp.

Function Documentation

◆ CalcFileSum()

◆ CreatePath()

bool CreatePath ( const wchar Path,
bool  SkipLastName,
bool  Silent 
)

◆ DelDir()

bool DelDir ( const wchar Name)

Definition at line 481 of file filefn.cpp.

References ASIZE, and WideToChar().

Referenced by CreateReparsePoint().

◆ DelFile()

bool DelFile ( const wchar Name)

Definition at line 461 of file filefn.cpp.

References ASIZE, and WideToChar().

Referenced by CreateReparsePoint(), File::Delete(), FileCreate(), and UnixSymlink().

◆ EraseDiskContents()

void EraseDiskContents ( const wchar FileName)

◆ FileExist()

◆ GetFileAttr()

◆ GetFreeDisk()

int64 GetFreeDisk ( const wchar Name)

Definition at line 145 of file filefn.cpp.

References ASIZE, GetFilePath(), INT32TO64, and WideToChar().

Referenced by File::Write().

◆ IsDeleteAllowed()

bool IsDeleteAllowed ( uint  FileAttr)

Definition at line 254 of file filefn.cpp.

◆ IsDir()

◆ IsLink()

bool IsLink ( uint  Attr)

Definition at line 238 of file filefn.cpp.

Referenced by ExtractUnixLink30(), FindFile::FastFind(), and FindFile::Next().

◆ IsRemovable()

bool IsRemovable ( const wchar Name)

Definition at line 131 of file filefn.cpp.

References ASIZE, and GetPathRoot().

Referenced by MergeArchive().

◆ IsUnreadable()

bool IsUnreadable ( uint  Attr)

Definition at line 229 of file filefn.cpp.

◆ MakeDir()

MKDIR_CODE MakeDir ( const wchar Name,
bool  SetAttr,
uint  Attr 
)

◆ PrepareToDelete()

void PrepareToDelete ( const wchar Name)

Definition at line 264 of file filefn.cpp.

References ASIZE, SetFileAttr(), and WideToChar().

Referenced by uiAskReplaceEx().

◆ RenameFile()

bool RenameFile ( const wchar SrcName,
const wchar DestName 
)

Definition at line 439 of file filefn.cpp.

References ASIZE, and WideToChar().

Referenced by File::Rename(), RecVolumes3::Restore(), and RecVolumes5::Restore().

◆ SetDirTime()

void SetDirTime ( const wchar Name,
RarTime ftm,
RarTime ftc,
RarTime fta 
)

◆ SetFileAttr()

bool SetFileAttr ( const wchar Name,
uint  Attr 
)

◆ SetSFXMode()

void SetSFXMode ( const wchar FileName)

◆ WildFileExist()

bool WildFileExist ( const wchar Name)

Definition at line 205 of file filefn.cpp.

References FileExist(), IsWildcard(), FindFile::Next(), and FindFile::SetMask().

Referenced by GetConfigName().