Skip to main content

new

Function new 

Source
pub(in storage) fn new(
    args: &Args<'_>,
    name: &str,
    config: &StorageProviderLocal,
) -> Result<Option<(String, Arc<Provider>)>>
Expand description

Builds an enabled local-filesystem provider.

An empty base path returns None. When requested, the directory is created before the backend is configured with its cleanup policy.