pub struct LocalFs { /* private fields */ }
Expand description
Local Filesystem implementation.
Implementations§
Source§impl LocalFs
impl LocalFs
Sourcepub fn new<P: AsRef<Path>>(
base: P,
public: bool,
case_insensitive: bool,
macos: bool,
) -> Box<LocalFs>
pub fn new<P: AsRef<Path>>( base: P, public: bool, case_insensitive: bool, macos: bool, ) -> Box<LocalFs>
Create a new LocalFs DavFileSystem, serving “base”.
If “public” is set to true, all files and directories created will be publically readable (mode 644/755), otherwise they will be private (mode 600/700). Umask stil overrides this.
If “case_insensitive” is set to true, all filesystem lookups will be case insensitive. Note that this has a lot of overhead!
Trait Implementations§
Source§impl DavFileSystem for LocalFs
impl DavFileSystem for LocalFs
Source§fn metadata<'a>(
&'a self,
davpath: &'a DavPath,
) -> FsFuture<'_, Box<dyn DavMetaData>>
fn metadata<'a>( &'a self, davpath: &'a DavPath, ) -> FsFuture<'_, Box<dyn DavMetaData>>
Return the metadata of a file or directory.
Source§fn symlink_metadata<'a>(
&'a self,
davpath: &'a DavPath,
) -> FsFuture<'_, Box<dyn DavMetaData>>
fn symlink_metadata<'a>( &'a self, davpath: &'a DavPath, ) -> FsFuture<'_, Box<dyn DavMetaData>>
Return the metadata of a file, directory or symbolic link. Read more
Source§fn read_dir<'a>(
&'a self,
davpath: &'a DavPath,
meta: ReadDirMeta,
) -> FsFuture<'_, FsStream<Box<dyn DavDirEntry>>>
fn read_dir<'a>( &'a self, davpath: &'a DavPath, meta: ReadDirMeta, ) -> FsFuture<'_, FsStream<Box<dyn DavDirEntry>>>
Perform read_dir.
Source§fn open<'a>(
&'a self,
path: &'a DavPath,
options: OpenOptions,
) -> FsFuture<'_, Box<dyn DavFile>>
fn open<'a>( &'a self, path: &'a DavPath, options: OpenOptions, ) -> FsFuture<'_, Box<dyn DavFile>>
Open a file.
Source§fn create_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
fn create_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
Create a directory. Read more
Source§fn remove_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
fn remove_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
Remove a directory. Read more
Source§fn rename<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
fn rename<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
Rename a file or directory. Read more
Source§fn copy<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
fn copy<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
Copy a file Read more
Source§fn have_props<'a>(
&'a self,
path: &'a DavPath,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>
fn have_props<'a>( &'a self, path: &'a DavPath, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>
Indicator that tells if this filesystem driver supports DAV properties. Read more
Source§fn patch_props<'a>(
&'a self,
path: &'a DavPath,
patch: Vec<(bool, DavProp)>,
) -> FsFuture<'_, Vec<(StatusCode, DavProp)>>
fn patch_props<'a>( &'a self, path: &'a DavPath, patch: Vec<(bool, DavProp)>, ) -> FsFuture<'_, Vec<(StatusCode, DavProp)>>
Patch the DAV properties of a node (add/remove props) Read more
Source§fn get_props<'a>(
&'a self,
path: &'a DavPath,
do_content: bool,
) -> FsFuture<'_, Vec<DavProp>>
fn get_props<'a>( &'a self, path: &'a DavPath, do_content: bool, ) -> FsFuture<'_, Vec<DavProp>>
List/get the DAV properties of a node. Read more
Auto Trait Implementations§
impl Freeze for LocalFs
impl !RefUnwindSafe for LocalFs
impl Send for LocalFs
impl Sync for LocalFs
impl Unpin for LocalFs
impl !UnwindSafe for LocalFs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more