Struct leo_package::source::directory::SourceDirectory
source · pub struct SourceDirectory;Implementations§
source§impl SourceDirectory
impl SourceDirectory
sourcepub fn create(path: &Path) -> Result<()>
pub fn create(path: &Path) -> Result<()>
Creates a directory at the provided path with the default directory name.
sourcepub fn files(path: &Path) -> Result<Vec<PathBuf>>
pub fn files(path: &Path) -> Result<Vec<PathBuf>>
Returns a list of files in the source directory.
sourcepub fn check_files(paths: &[PathBuf]) -> Result<()>
pub fn check_files(paths: &[PathBuf]) -> Result<()>
Check that the files in the source directory are valid.
Auto Trait Implementations§
impl RefUnwindSafe for SourceDirectory
impl Send for SourceDirectory
impl Sync for SourceDirectory
impl Unpin for SourceDirectory
impl UnwindSafe for SourceDirectory
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