1 #ifndef _RAR_FILEFN_
2 #define _RAR_FILEFN_
3 
4 enum MKDIR_CODE {MKDIR_SUCCESS,MKDIR_ERROR,MKDIR_BADPATH};
5 
6 MKDIR_CODE MakeDir(const char *Name,const wchar *NameW,bool SetAttr,uint Attr);
7 bool CreatePath(const char *Path,bool SkipLastName);
8 bool CreatePath(const wchar *Path,bool SkipLastName);
9 bool CreatePath(const char *Path,const wchar *PathW,bool SkipLastName);
10 void SetDirTime(const char *Name,const wchar *NameW,RarTime *ftm,RarTime *ftc,RarTime *fta);
11 bool IsRemovable(const char *Name);
12 
13 #ifndef SFX_MODULE
14 int64 GetFreeDisk(const char *Name);
15 #endif
16 
17 
18 bool FileExist(const char *Name,const wchar *NameW=NULL);
19 bool FileExist(const wchar *Name);
20 bool WildFileExist(const char *Name,const wchar *NameW=NULL);
21 bool IsDir(uint Attr);
22 bool IsUnreadable(uint Attr);
23 bool IsLabel(uint Attr);
24 bool IsLink(uint Attr);
25 void SetSFXMode(const char *FileName);
26 void EraseDiskContents(const char *FileName);
27 bool IsDeleteAllowed(uint FileAttr);
28 void PrepareToDelete(const char *Name,const wchar *NameW=NULL);
29 uint GetFileAttr(const char *Name,const wchar *NameW=NULL);
30 bool SetFileAttr(const char *Name,const wchar *NameW,uint Attr);
31 
32 enum CALCCRC_SHOWMODE {CALCCRC_SHOWNONE,CALCCRC_SHOWTEXT,CALCCRC_SHOWALL};
33 uint CalcFileCRC(File *SrcFile,int64 Size=INT64NDF,CALCCRC_SHOWMODE ShowMode=CALCCRC_SHOWNONE);
34 
35 bool RenameFile(const char *SrcName,const wchar *SrcNameW,const char *DestName,const wchar *DestNameW);
36 bool DelFile(const char *Name);
37 bool DelFile(const char *Name,const wchar *NameW);
38 bool DelDir(const char *Name);
39 bool DelDir(const char *Name,const wchar *NameW);
40 
41 #if defined(_WIN_ALL) && !defined(_WIN_CE)
42 bool SetFileCompression(char *Name,wchar *NameW,bool State);
43 #endif
44 
45 
46 
47 
48 #endif
49