Module rustc::util::fs [] [src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Enums

LinkOrCopy [
Experimental
]
RenameOrCopyRemove [
Experimental
]

Functions

fix_windows_verbatim_for_gcc [
Experimental
]
link_or_copy [
Experimental
]

Copy p into q, preferring to use hard-linking if possible. If q already exists, it is removed first. The result indicates which of the two operations has been performed.

rename_or_copy_remove [
Experimental
]

Rename p into q, preferring to use rename if possible. If rename fails (rename may fail for reasons such as crossing filesystem), fallback to copy & remove