_scripts iter_linkΒΆ
Usage
Run using mc_script _scripts iter_link after installation or using ~ndcn0236/bin/mc_script _scripts iter_link on jalapeno.
Import in python using from mcot.core._scripts import iter_link
Documentation
Iterates through source directory linking each file to destination directory.
The result is that the directory structure in the destination directory will match the source directory, with each file in the source directory linked in (as long as the file did not already exist).
This can be useful if the source directory is read-only and you want a local copy where you can add files without actually copying all the data.
Functions
link_dir(source, destination) |
Links each file in source to destination path iteratively |
CLI interface
add_to_parser(parser) |
Creates the parser of the command line arguments |
run_from_args(args) |
Runs the script based on a Namespace containing the command line arguments |