|
virtual Result | Open (const char *filePath, OpenMode mode, HandleType &fileHandle)=0 |
|
virtual Result | Close (HandleType fileHandle)=0 |
|
virtual Result | Tell (HandleType fileHandle, AZ::u64 &offset)=0 |
|
virtual Result | Seek (HandleType fileHandle, AZ::s64 offset, SeekType type)=0 |
|
virtual Result | Read (HandleType fileHandle, void *buffer, AZ::u64 size, bool failOnFewerThanSizeBytesRead=false, AZ::u64 *bytesRead=nullptr)=0 |
|
virtual Result | Write (HandleType fileHandle, const void *buffer, AZ::u64 size, AZ::u64 *bytesWritten=nullptr)=0 |
|
virtual Result | Flush (HandleType fileHandle)=0 |
|
virtual bool | Eof (HandleType fileHandle)=0 |
|
virtual AZ::u64 | ModificationTime (HandleType fileHandle)=0 |
|
virtual AZ::u64 | ModificationTime (const char *filePath)=0 |
|
virtual Result | Size (const char *filePath, AZ::u64 &size)=0 |
| Get the size of the file. Returns Success if we report size.
|
|
virtual Result | Size (HandleType fileHandle, AZ::u64 &size)=0 |
|
virtual bool | Exists (const char *filePath)=0 |
| no fail, returns false if it does not exist
|
|
virtual bool | IsDirectory (const char *filePath)=0 |
| no fail, returns false if its not a directory or does not exist
|
|
virtual bool | IsReadOnly (const char *filePath)=0 |
| no fail, returns false if its read only or does not exist
|
|
virtual Result | CreatePath (const char *filePath)=0 |
| create a path, recursively
|
|
virtual Result | DestroyPath (const char *filePath)=0 |
|
virtual Result | Remove (const char *filePath)=0 |
|
virtual Result | Copy (const char *sourceFilePath, const char *destinationFilePath)=0 |
|
virtual Result | Rename (const char *originalFilePath, const char *newFilePath)=0 |
|
virtual Result | FindFiles (const char *filePath, const char *filter, FindFilesCallbackType callback)=0 |
|
virtual void | SetAlias (const char *alias, const char *path)=0 |
| SetAlias - Adds an alias to the path resolution system, e.g. @user@, @products@, etc.
|
|
virtual void | ClearAlias (const char *alias)=0 |
| ClearAlias - Removes an alias from the path resolution system.
|
|
virtual const char * | GetAlias (const char *alias) const =0 |
| GetAlias - Returns the destination path for a given alias, or nullptr if the alias does not exist.
|
|
virtual void | SetDeprecatedAlias (AZStd::string_view oldAlias, AZStd::string_view newAlias)=0 |
|
virtual AZStd::optional< AZ::u64 > | ConvertToAlias (char *inOutBuffer, AZ::u64 bufferLength) const =0 |
|
virtual bool | ConvertToAlias (AZ::IO::FixedMaxPath &convertedPath, const AZ::IO::PathView &path) const =0 |
|
AZStd::optional< AZ::IO::FixedMaxPath > | ConvertToAlias (const AZ::IO::PathView &path) const |
|
virtual bool | ResolvePath (const char *path, char *resolvedPath, AZ::u64 resolvedPathSize) const =0 |
|
virtual bool | ResolvePath (AZ::IO::FixedMaxPath &resolvedPath, const AZ::IO::PathView &path) const =0 |
|
AZStd::optional< AZ::IO::FixedMaxPath > | ResolvePath (const AZ::IO::PathView &path) const |
|
virtual bool | ReplaceAlias (AZ::IO::FixedMaxPath &replacedAliasPath, const AZ::IO::PathView &path) const =0 |
|
virtual bool | GetFilename (HandleType fileHandle, char *filename, AZ::u64 filenameSize) const =0 |
| Divulge the filename used to originally open that handle.
|
|
virtual bool | IsRemoteIOEnabled () |
|
The base class for file IO stack classes.