Download scripts/FASTER/make_relative_path.m from jalauer/Singh2020: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/datasets/jalauer/Singh2020/resolve/main/scripts/FASTER/make_relative_path.m
- Command line
-
hf download hf://datasets/jalauer/Singh2020/scripts/FASTER/make_relative_path.m
-
curl -L -o make_relative_path.m https://huggingface.co/datasets/jalauer/Singh2020/resolve/main/scripts/FASTER/make_relative_path.m
325 Bytes
| function [pathstring] = make_relative_path(rel_path_tree,path_1) | |
| % Reconstructs the relative path from path_1 using the relative | |
| % path tree generated by find_relative_path | |
| tmpdir=cd; | |
| pathstring=path_1; | |
| for v=1:length(rel_path_tree) | |
| cd([pathstring filesep rel_path_tree{v}]); | |
| pathstring=cd; | |
| end | |
| cd(tmpdir); | |