Download scripts/FASTER/get_dir_structure.m from jalauer/Singh2020: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/datasets/jalauer/Singh2020/resolve/main/scripts/FASTER/get_dir_structure.m
- Command line
-
hf download hf://datasets/jalauer/Singh2020/scripts/FASTER/get_dir_structure.m
-
curl -L -o get_dir_structure.m https://huggingface.co/datasets/jalauer/Singh2020/resolve/main/scripts/FASTER/get_dir_structure.m
284 Bytes
| function folders=get_dir_structure(current,base) | |
| x=filesep; | |
| if x=='\' | |
| x='\\'; | |
| end | |
| Current=textscan(current,'%s','Delimiter',x); | |
| Current=Current{1}; | |
| Base=textscan(base,'%s','Delimiter',x); | |
| Base=Base{1}; | |
| [x y]=setdiff(Current,Base); | |
| [y1]=sort(y); | |
| folders={Current{y1}}; |