iter_link¶
Usage
Run using mc_script iter_link after installation or using ~ndcn0236/bin/mc_script iter_link on jalapeno.
Import in python using from mcutils.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
|
Links each file in source to destination path iteratively |
CLI interface
|
Creates the parser of the command line arguments |
|
Runs the script based on a Namespace containing the command line arguments |