Merge pull request #4011 from fritsch/vdpau-settings
[vuplus_xbmc] / lib / UnrarXLib / filefn.hpp
1 #ifndef _RAR_FILEFN_
2 #define _RAR_FILEFN_
3
4 void SetDirTime(const char *Name,RarTime *ftm,RarTime *ftc,RarTime *fta);
5 bool IsRemovable(const char *Name);
6 Int64 GetFreeDisk(const char *Name);
7 bool FileExist(const char *Name,const wchar *NameW=NULL);
8 bool WildFileExist(const char *Name,const wchar *NameW=NULL);
9 bool IsDir(uint Attr);
10 bool IsUnreadable(uint Attr);
11 bool IsLabel(uint Attr);
12 bool IsLink(uint Attr);
13 void SetSFXMode(const char *FileName);
14 void EraseDiskContents(const char *FileName);
15 bool IsDeleteAllowed(uint FileAttr);
16 void PrepareToDelete(const char *Name,const wchar *NameW=NULL);
17 uint GetFileAttr(const char *Name,const wchar *NameW=NULL);
18 bool SetFileAttr(const char *Name,const wchar *NameW,uint Attr);
19 void ConvertNameToFull(const char *Src,char *Dest);
20 void ConvertNameToFull(const wchar *Src,wchar *Dest);
21 char* MkTemp(char *Name);
22
23
24 uint CalcFileCRC(File *SrcFile,Int64 Size=INT64ERR);
25 bool RenameFile(const char *SrcName,const wchar *SrcNameW,const char *DestName,const wchar *DestNameW);
26 bool DelFile(const char *Name);
27 bool DelFile(const char *Name,const wchar *NameW);
28 bool DelDir(const char *Name);
29 bool DelDir(const char *Name,const wchar *NameW);
30
31 #endif