2009-11-10 16:48:42 +01:00
|
|
|
#ifndef _RAR_FILEFN_
|
|
|
|
#define _RAR_FILEFN_
|
|
|
|
|
|
|
|
enum MKDIR_CODE {MKDIR_SUCCESS,MKDIR_ERROR,MKDIR_BADPATH};
|
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
MKDIR_CODE MakeDir(const wchar *Name,bool SetAttr,uint Attr);
|
2021-05-24 17:37:15 +02:00
|
|
|
bool CreatePath(const wchar *Path,bool SkipLastName,bool Silent);
|
2020-07-15 00:40:26 +02:00
|
|
|
void SetDirTime(const wchar *Name,RarTime *ftm,RarTime *ftc,RarTime *fta);
|
|
|
|
bool IsRemovable(const wchar *Name);
|
|
|
|
|
|
|
|
#ifndef SFX_MODULE
|
|
|
|
int64 GetFreeDisk(const wchar *Name);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(_WIN_ALL) && !defined(SFX_MODULE) && !defined(SILENT)
|
|
|
|
bool IsFAT(const wchar *Root);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
bool FileExist(const wchar *Name);
|
|
|
|
bool WildFileExist(const wchar *Name);
|
2009-11-10 16:48:42 +01:00
|
|
|
bool IsDir(uint Attr);
|
|
|
|
bool IsUnreadable(uint Attr);
|
|
|
|
bool IsLink(uint Attr);
|
2020-07-15 00:40:26 +02:00
|
|
|
void SetSFXMode(const wchar *FileName);
|
|
|
|
void EraseDiskContents(const wchar *FileName);
|
2009-11-10 16:48:42 +01:00
|
|
|
bool IsDeleteAllowed(uint FileAttr);
|
2020-07-15 00:40:26 +02:00
|
|
|
void PrepareToDelete(const wchar *Name);
|
|
|
|
uint GetFileAttr(const wchar *Name);
|
|
|
|
bool SetFileAttr(const wchar *Name,uint Attr);
|
|
|
|
#if 0
|
|
|
|
wchar* MkTemp(wchar *Name,size_t MaxSize);
|
|
|
|
#endif
|
2009-11-10 16:48:42 +01:00
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
enum CALCFSUM_FLAGS {CALCFSUM_SHOWTEXT=1,CALCFSUM_SHOWPERCENT=2,CALCFSUM_SHOWPROGRESS=4,CALCFSUM_CURPOS=8};
|
2009-11-10 16:48:42 +01:00
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
void CalcFileSum(File *SrcFile,uint *CRC32,byte *Blake2,uint Threads,int64 Size=INT64NDF,uint Flags=0);
|
2009-11-10 16:48:42 +01:00
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
bool RenameFile(const wchar *SrcName,const wchar *DestName);
|
|
|
|
bool DelFile(const wchar *Name);
|
|
|
|
bool DelDir(const wchar *Name);
|
2009-11-10 16:48:42 +01:00
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
#if defined(_WIN_ALL) && !defined(SFX_MODULE)
|
|
|
|
bool SetFileCompression(const wchar *Name,bool State);
|
2009-11-10 16:48:42 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
|
2009-11-10 16:48:42 +01:00
|
|
|
#endif
|