pub async fn current_dir() -> Result<Self> {
        let current_dir =
            spawn_blocking(move || -> Result<PathBuf> { env::current_dir().map_err(Error::from) }).await??;
        let current_dir = current_dir.to_str().expect("couldn't stringify current_dir");
        let data_path = format!("{}/data", current_dir);

        Self::new(&data_path).await
    }
/// Creates a new [`FileStorage`](FileStorage) with the current directory as storage path.
Creates a new [`FileStorage`](FileStorage) with the current directory as storage path.
Creates a new [ ` FileStorage ` ] ( FileStorage ) with the current directory as storage path .
pub async fn current_dir() -> Result<Self> {
        let current_dir =
            spawn_blocking(move || -> Result<PathBuf> { env::current_dir().map_err(Error::from) }).await??;
        let current_dir = current_dir.to_str().expect("couldn't stringify current_dir");
        let data_path = format!("{}/data", current_dir);
        Self::new(&data_path).await
    }
pub async fn current_dir ( ) -> Result < Self > { let current_dir = spawn_blocking ( move | | -> Result < PathBuf > { env :: current_dir ( ) . map_err ( Error :: from ) } ) . await ? ? ; let current_dir = current_dir . to_str ( ) . expect ( " " ) ; let data_path = format ! ( " " current_dir ) ; Self :: new ( & data_path ) . await }
Creates a new [`FileStorage`](FileStorage) with the current directory as storage path.
Creates a new [ ` FileStorage ` ] ( FileStorage ) with the current directory as storage path .