yolk

Module util

Source

Traits§

PathExt

Functions§

create_regex
create_symlink
Create a symlink at link pointing to original.
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.