file-storage 0.10.0

This library aids in accessing file-like storage.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::system::{LocalListFilesOp, LocalPath};
use crate::Error;

impl<'a> LocalPath<'a> {
    //! List Files

    /// See `FolderPath::list_files`.
    pub(crate) fn list_files(self) -> Result<LocalListFilesOp, Error> {
        LocalListFilesOp::new(self.path.clone_make_folder(), true)
    }

    /// See `FolderPath::list_files_unsorted`.
    pub(crate) fn list_files_unsorted(self) -> Result<LocalListFilesOp, Error> {
        LocalListFilesOp::new(self.path.clone_make_folder(), false)
    }
}