Traits§
Functions§
- create_
regex - create_
symlink - Create a symlink at
link
pointing tooriginal
. - ensure_
file_ contains_ lines - Ensure that a file contains the given lines, appending them if they are missing. If the file does not yet exist, it will be created.
- remove_
symlink - Delete a symlink at
path
, but only if it actually is a symlink. - rename_
safely - Rename or move a file, but only if the destination doesn’t exist.
This is a safer verison of
std::fs::rename
that doesn’t overwrite files.