MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / create_symlink

Function create_symlink

atomic-repository/src/repository/operation.rs:5301–5307  ·  view source on GitHub ↗
(
    target: &Path,
    destination: &Path,
    _source: &Path,
)

Source from the content-addressed store, hash-verified

5299
5300#[cfg(unix)]
5301fn create_symlink(
5302 target: &Path,
5303 destination: &Path,
5304 _source: &Path,
5305) -> Result<(), RepositoryError> {
5306 std::os::unix::fs::symlink(target, destination).map_err(RepositoryError::Io)
5307}
5308
5309#[cfg(windows)]
5310fn create_symlink(target: &Path, destination: &Path, source: &Path) -> Result<(), RepositoryError> {

Callers 2

copy_entryFunction · 0.70
replace_symlinkFunction · 0.70

Calls 2

is_dirMethod · 0.80
metadataFunction · 0.50

Tested by

no test coverage detected