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
Go to the documentation of this file.
1#ifndef _RAR_FILEFN_
2#define _RAR_FILEFN_
3
5
6MKDIR_CODE MakeDir(const wchar *Name,bool SetAttr,uint Attr);
7bool CreatePath(const wchar *Path,bool SkipLastName,bool Silent);
8void SetDirTime(const wchar *Name,RarTime *ftm,RarTime *ftc,RarTime *fta);
9bool IsRemovable(const wchar *Name);
10
11#ifndef SFX_MODULE
12int64 GetFreeDisk(const wchar *Name);
13#endif
14
15#if defined(_WIN_ALL) && !defined(SFX_MODULE) && !defined(SILENT)
16bool IsFAT(const wchar *Root);
17#endif
18
19bool FileExist(const wchar *Name);
20bool WildFileExist(const wchar *Name);
21bool IsDir(uint Attr);
22bool IsUnreadable(uint Attr);
23bool IsLink(uint Attr);
24void SetSFXMode(const wchar *FileName);
25void EraseDiskContents(const wchar *FileName);
26bool IsDeleteAllowed(uint FileAttr);
27void PrepareToDelete(const wchar *Name);
28uint GetFileAttr(const wchar *Name);
29bool SetFileAttr(const wchar *Name,uint Attr);
30#if 0
31wchar* MkTemp(wchar *Name,size_t MaxSize);
32#endif
33
35
36void CalcFileSum(File *SrcFile,uint *CRC32,byte *Blake2,uint Threads,int64 Size=INT64NDF,uint Flags=0);
37
38bool RenameFile(const wchar *SrcName,const wchar *DestName);
39bool DelFile(const wchar *Name);
40bool DelDir(const wchar *Name);
41
42#if defined(_WIN_ALL) && !defined(SFX_MODULE)
43bool SetFileCompression(const wchar *Name,bool State);
44void ResetFileCache(const wchar *Name);
45#endif
46
47
48
49
50
51#endif
Definition: file.hpp:57
uint CRC32(uint StartCRC, const void *Addr, size_t Size)
Definition: crc.cpp:62
bool IsUnreadable(uint Attr)
Definition: filefn.cpp:229
bool DelFile(const wchar *Name)
Definition: filefn.cpp:461
uint GetFileAttr(const wchar *Name)
Definition: filefn.cpp:280
void PrepareToDelete(const wchar *Name)
Definition: filefn.cpp:264
bool IsLink(uint Attr)
Definition: filefn.cpp:238
bool IsRemovable(const wchar *Name)
Definition: filefn.cpp:131
int64 GetFreeDisk(const wchar *Name)
Definition: filefn.cpp:145
bool CreatePath(const wchar *Path, bool SkipLastName, bool Silent)
Definition: filefn.cpp:41
CALCFSUM_FLAGS
Definition: filefn.hpp:34
@ CALCFSUM_SHOWPROGRESS
Definition: filefn.hpp:34
@ CALCFSUM_SHOWPERCENT
Definition: filefn.hpp:34
@ CALCFSUM_SHOWTEXT
Definition: filefn.hpp:34
@ CALCFSUM_CURPOS
Definition: filefn.hpp:34
void SetDirTime(const wchar *Name, RarTime *ftm, RarTime *ftc, RarTime *fta)
Definition: filefn.cpp:89
bool DelDir(const wchar *Name)
Definition: filefn.cpp:481
bool WildFileExist(const wchar *Name)
Definition: filefn.cpp:205
bool IsDir(uint Attr)
Definition: filefn.cpp:218
void EraseDiskContents(const wchar *FileName)
bool RenameFile(const wchar *SrcName, const wchar *DestName)
Definition: filefn.cpp:439
void SetSFXMode(const wchar *FileName)
MKDIR_CODE MakeDir(const wchar *Name, bool SetAttr, uint Attr)
Definition: filefn.cpp:3
bool SetFileAttr(const wchar *Name, uint Attr)
Definition: filefn.cpp:302
bool FileExist(const wchar *Name)
Definition: filefn.cpp:190
bool IsDeleteAllowed(uint FileAttr)
Definition: filefn.cpp:254
void CalcFileSum(File *SrcFile, uint *CRC32, byte *Blake2, uint Threads, int64 Size=INT64NDF, uint Flags=0)
Definition: filefn.cpp:361
MKDIR_CODE
Definition: filefn.hpp:4
@ MKDIR_BADPATH
Definition: filefn.hpp:4
@ MKDIR_SUCCESS
Definition: filefn.hpp:4
@ MKDIR_ERROR
Definition: filefn.hpp:4
#define INT64NDF
Definition: rartypes.hpp:30
wchar_t wchar
Definition: rartypes.hpp:13
int64_t int64
Definition: rartypes.hpp:12
unsigned int uint
Definition: rartypes.hpp:8