IStorageFolder
trait · ferroui-base · v0.5.0
trait IStorageFolder: IStorageItem
Manipulates folders and their contents, and provides information about them.
This interface is not meant to be implemented by applications.
Members
get_items_async
fn get_items_async(self: &Self) -> LocalBoxFuture<std::io::Result<Vec<Rc<dyn IStorageItem>>>>
Gets the files and subfolders in the current folder.
When this method completes successfully, it returns a list of the
files and folders in the current folder. Each item in the list is
represented by an IStorageItem implementation object.
get_folder_async
fn get_folder_async(self: &Self, name: &str) -> LocalBoxFuture<Option<Rc<dyn IStorageFolder>>>
Gets the folder with the specified name from the current folder.
Resolves to the folder if it exists, None otherwise.
get_file_async
fn get_file_async(self: &Self, name: &str) -> LocalBoxFuture<Option<Rc<dyn IStorageFile>>>
Gets the file with the specified name from the current folder.
Resolves to the file if it exists, None otherwise.
create_file_async
fn create_file_async(self: &Self, name: &str) -> LocalBoxFuture<std::io::Result<Option<Rc<dyn IStorageFile>>>>
Creates a file with the specified name as a child of the current storage folder.
create_folder_async
fn create_folder_async(self: &Self, name: &str) -> LocalBoxFuture<std::io::Result<Option<Rc<dyn IStorageFolder>>>>
Creates a folder with the specified name as a child of the current storage folder.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.