Skip to contents

Create a symlink to a data directory in a resrepo (more details needed)

Usage

data_dir_link(link_dir, target_dir)

Arguments

the link, given as relative to the root of the git repository (e.g. "/data/raw/my_new_dir"). If the directory exists, it must be empty, as it will be deleted and removed.

target_dir

path outside the git repository that we want to link to (i.e. where the data will be really stored)

Details

Links to directories inside the repository (e.g. data/raw to versions/starting/raw) are relative, like those made by the git hooks, so that they keep working when the repository is moved; links to directories outside it (external storage) are absolute. On Windows, links are junctions, which are always absolute.