[−][src]Struct badm_core::FileHandler
Moves, stores, and creates files and symlinks.
Implementations
impl FileHandler[src]
pub fn store_file(src: &Path, dst: &Path) -> Result<()>[src]
Store a file in the dotfiles directory, create a symlink at the original source of the stowed file.
pub fn move_file(src: &Path, dst: &Path) -> Result<()>[src]
Read file at path src and write to created/truncated file at path dst
pub fn create_symlink(src: &Path, dst: &Path) -> Result<()>[src]
Create a symlink at "dst" pointing to "src."
For Unix platforms, std::os::unix::fs::symlink is used to create symlinks. For Windows, std::os::windows::fs::symlink_file is used.
Auto Trait Implementations
impl RefUnwindSafe for FileHandler
impl Send for FileHandler
impl Sync for FileHandler
impl Unpin for FileHandler
impl UnwindSafe for FileHandler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,