|
Various operations on files and directories. |
All the functions which are returning a bool value, return true when the operation was successful.
|
|
ZIP_API bool | GetCurrentDirectory (CZipString &sz) |
| | Get the current directory and store it in sz.
|
|
ZIP_API bool | ChangeDirectory (LPCTSTR lpDirectory) |
|
ZIP_API bool | SetFileAttr (LPCTSTR lpFileName, DWORD uAttr) |
|
ZIP_API bool | GetFileAttr (LPCTSTR lpFileName, DWORD &uAttr) |
|
ZIP_API bool | GetFileModTime (LPCTSTR lpFileName, time_t &ttime) |
| | get the file modification time
|
|
ZIP_API bool | GetFileSize (LPCTSTR lpszFileName, DWORD &dSize) |
|
ZIP_API bool | SetFileModTime (LPCTSTR lpFileName, time_t ttime) |
| | set the file modification time
|
|
ZIP_API bool | CreateDirectory (LPCTSTR lpDirectory) |
|
ZIP_API bool | SetVolLabel (LPCTSTR lpszPath, LPCTSTR lpszLabel) |
| | lpszPath may point to a file on the device
|
|
ZIP_API bool | ForceDirectory (LPCTSTR lpDirectory) |
| | create nested directories at once
|
|
ZIP_API bool | RemoveFile (LPCTSTR lpszFileName, bool bThrow=true) |
|
ZIP_API bool | RenameFile (LPCTSTR lpszOldName, LPCTSTR lpszNewName, bool bThrow=true) |
|
ZIP_API bool | TruncateFile (int iDes, DWORD iSize) |
|
ZIP_API int | OpenFile (LPCTSTR lpszFileName, UINT iMode, int iShareMode) |
|
ZIP_API bool | FlushFile (int iDes) |
| | flush the file to the disk.
|
|
ZIP_API int | GetFileSystemHandle (int iDes) |
| | return the underlying system handle
|
Functions |
|
ZIP_API bool | GetSystemCaseSensitivity () |
| | return the default system case-sensitivity
|
| ZIP_API int | GetSystemID () |
| ZIP_API DWORD | GetDefaultAttributes () |
| ZIP_API DWORD | GetDefaultDirAttributes () |
|
ZIP_API DWORD | GetDeviceFreeSpace (LPCTSTR lpszPath) |
| | Get the free space on the device pointed by lpszPath.
|
| ZIP_API CZipString | GetTmpFileName (LPCTSTR lpszPath=NULL, DWORD iSizeNeeded=DWORD(-1)) |
| | Return the temporary file name ensuring there is enough size in the destination directory,.
|
| ZIP_API bool | DirectoryExists (LPCTSTR lpszDir) |
| ZIP_API bool | IsDriveRemovable (LPCTSTR lpszFilePath) |
| ZIP_API bool | IsDirectory (DWORD uAttr) |
| ZIP_API void | AnsiOem (CZipAutoBuffer &buffer, bool bAnsiToOem) |
| | Perform the translation between ANSI and OEM character sets.
|
| ZIP_API int | FileExists (LPCTSTR lpszName) |
| | Check if the given file or directory exists.
|
| ZIP_API int | WideToSingle (LPCTSTR lpWide, CZipAutoBuffer &szSingle) |
| | Convert wide character string to single character string.
|
| ZIP_API int | SingleToWide (const CZipAutoBuffer &szSingle, CZipString &szWide) |
| | Convert single character string to wide character string.
|
All functions have a system - specific implementation .