Module rustc_trans::util::fs [] [src]

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

Enums

LinkOrCopy [
Experimental
]
RenameOrCopyRemove [
Experimental
]

Functions

create_dir_racy [
Experimental
]
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