smb-server 0.12.1

SMB2/3 file-sharing server library with pluggable storage backends.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The directory handles every name of a share is looked up from, under
//! the same names on every host: those of `cap-std` on Unix, and those of
//! `windows_dir` on Windows.

#[cfg(unix)]
pub(super) use cap_std::ambient_authority;
#[cfg(unix)]
pub(super) use cap_std::fs::{Dir, DirEntry, File, FileType, Metadata, OpenOptions};

#[cfg(windows)]
pub(super) use super::windows_dir::{
    Dir, DirEntry, File, FileType, Metadata, OpenOptions, ambient_authority,
};