# IStorageFolder

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/storage/trait-istoragefolder/

**trait** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
trait IStorageFolder: IStorageItem
```

Manipulates folders and their contents, and provides information about
them.

This interface is not meant to be implemented by applications.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_storage_folder.rs#L9)

## Members

- [`get_items_async`](#function-get_items_async)
- [`get_folder_async`](#function-get_folder_async)
- [`get_file_async`](#function-get_file_async)
- [`create_file_async`](#function-create_file_async)
- [`create_folder_async`](#function-create_folder_async)

<a id="function-get_items_async"></a>

### get_items_async

```rust
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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_storage_folder.rs#L15)

<a id="function-get_folder_async"></a>

### get_folder_async

```rust
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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_storage_folder.rs#L20)

<a id="function-get_file_async"></a>

### get_file_async

```rust
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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_storage_folder.rs#L25)

<a id="function-create_file_async"></a>

### create_file_async

```rust
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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_storage_folder.rs#L29)

<a id="function-create_folder_async"></a>

### create_folder_async

```rust
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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_storage_folder.rs#L33)

## Trait implementations

- [`IStorageFolder`](/docs/0.5.0/api/ferroui-base/platform/storage/trait-istoragefolder/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
