Files
Types
-
Specifies file attributes.
-
Represents a opened file object.
-
Represents a directory stream that can be used to iterate all files and directories in the specified directory. See open_dir for details.
Enumerations
-
Represents file binary attributes.
-
Specifies attributes for one file open operation.
-
Specifies file creation mmode.
-
Specify attributes for one file copy operation.
-
Specify attributes for one file move operation.
Functions
-
R< Ref< IFile > > open_file(const c8 *path, FileOpenFlag flags, FileCreationMode creation)
Opens one file.
-
R< Blob > load_file_data(IFile *file)
Returns the data in the specified file as a blob object.
-
R< FileAttribute > get_file_attribute(const c8 *path)
Gets the file attribute.
-
RV copy_file(const c8 from_path, const c8 to_path, FileCopyFlag flags=FileCopyFlag::none)
Copies the file or directory from the source path to the destination path.
-
RV move_file(const c8 from_path, const c8 to_path, FileMoveFlag flags=FileMoveFlag::none)
Moves the file or directory from the source path to the destination path. This call can also be used to rename a file.
-
RV delete_file(const c8 *file_path)
Deletes the specified file or directory.
-
R< Ref< IFileIterator > > open_dir(const c8 *path)
Creates a file iterator that can be used to iterate all files in the specified directory.
-
Creates one empty directory.
-
u32 get_current_dir(u32 buffer_length, c8 *buffer)
Gets the current working directory path for the underlying system.
-
RV set_current_dir(const c8 *path)
Sets the current working directory path for the underlying system. The current directory will be set for the process scope.
-
Gets the full (absolute) path of the application's executable file.