Internal filesystem wrapper for the OSX.
(C) 2010 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
|
| static Handle | OpenFile (const Util::String &path, IO::Stream::AccessMode accessMode, IO::Stream::AccessPattern accessPattern) |
| | open a file
|
| |
| static void | CloseFile (Handle h) |
| | close a file
|
| |
| static void | Write (Handle h, const void *buf, IO::Stream::Size numBytes) |
| | write to a file
|
| |
| static IO::Stream::Size | Read (Handle h, void *buf, IO::Stream::Size numBytes) |
| | read from a file
|
| |
| static void | Seek (Handle h, IO::Stream::Offset offset, IO::Stream::SeekOrigin orig) |
| | seek in a file
|
| |
| static IO::Stream::Position | Tell (Handle h) |
| | get position in file
|
| |
| static void | Flush (Handle h) |
| | flush a file
|
| |
| static bool | Eof (Handle h) |
| | return true if at end-of-file
|
| |
| static IO::Stream::Size | GetFileSize (Handle h) |
| | get size of a file in bytes
|
| |
| static void | SetReadOnly (const Util::String &path, bool readOnly) |
| | set read-only status of a file
|
| |
| static bool | IsReadOnly (const Util::String &path) |
| | get read-only status of a file
|
| |
| static bool | DeleteFile (const Util::String &path) |
| | delete a file
|
| |
| static bool | DeleteDirectory (const Util::String &path) |
| | delete an empty directory
|
| |
| static bool | FileExists (const Util::String &path) |
| | return true if a file exists
|
| |
| static bool | DirectoryExists (const Util::String &path) |
| | return true if a directory exists
|
| |
| static void | SetFileWriteTime (const Util::String &path, IO::FileTime fileTime) |
| | set the write-access time stamp of a file
|
| |
| static IO::FileTime | GetFileWriteTime (const Util::String &path) |
| | get the last write-access time stamp of a file
|
| |
| static bool | CreateDirectory (const Util::String &path) |
| | create a directory
|
| |
| static Util::Array< Util::String > | ListFiles (const Util::String &dirPath, const Util::String &pattern) |
| | list all files in a directory
|
| |
| static Util::Array< Util::String > | ListDirectories (const Util::String &dirPath, const Util::String &pattern) |
| | list all subdirectories in a directory
|
| |
| static Util::String | GetUserDirectory () |
| | get path to the current user's home directory (for user: standard assign)
|
| |
| static Util::String | GetAppDataDirectory () |
| | get path to the current user's appdata directory (for appdata: standard assign)
|
| |
| static Util::String | GetTempDirectory () |
| | get path to the current user's temp directory (for temp: standard assign)
|
| |
| static Util::String | GetHomeDirectory () |
| | get path to the current application directory (for home: standard assign)
|
| |
| static Util::String | GetBinDirectory () |
| | get path to the current bin directory (for bin: standard assign)
|
| |
| static Util::String | GetProgramsDirectory () |
| | get path to the "c:/program files" directory
|
| |
| static bool | IsDeviceName (const Util::String &str) |
| | return true when the string is a device name (e.g. "C:")
|
| |
| static const char * | ConvertPath (const Util::String &str) |
| | skips the OSX: at the start of the path
|
| |