pub struct FsScope { /* private fields */ }
Expand description

Scope for filesystem access.

Implementations

The list of allowed patterns.

The list of forbidden patterns.

Listen to an event on this scope.

Extend the allowed patterns with the given directory.

After this function has been called, the frontend will be able to use the Tauri API to read the directory and all of its files and subdirectories.

Extend the allowed patterns with the given file path.

After this function has been called, the frontend will be able to use the Tauri API to read the contents of this file.

Set the given directory path to be forbidden by this scope.

Note: this takes precedence over allowed paths, so its access gets denied always.

Set the given file path to be forbidden by this scope.

Note: this takes precedence over allowed paths, so its access gets denied always.

Determines if the given path is allowed on this scope.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.