Skip to main content

SymlinkManager

Trait SymlinkManager 

Source
pub trait SymlinkManager {
    // Required methods
    fn create_symlink(
        &self,
        source: &Path,
        target: &Path,
    ) -> TwinResult<SymlinkInfo>;
    fn remove_symlink(&self, path: &Path) -> TwinResult<()>;
    fn validate_symlink(&self, path: &Path) -> TwinResult<bool>;
    fn get_manual_instructions(&self, source: &Path, target: &Path) -> String;
}
Expand description

プラットフォーム共通のトレイト

Required Methods§

シンボリックリンクを作成

シンボリックリンクを削除

シンボリックリンクを検証

Source

fn get_manual_instructions(&self, source: &Path, target: &Path) -> String

手動作成方法の説明を取得

Implementors§

Source§

impl SymlinkManager for UnixSymlinkManager

Available on Unix only.