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

Function create_symlink

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

Source from the content-addressed store, hash-verified

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

Callers 2

copy_entryFunction · 0.70
replace_symlinkFunction · 0.70

Calls 1

is_dirMethod · 0.80

Tested by

no test coverage detected