How to Hardlink directories (in mojave)
Posted: Fri Jan 13, 2023 8:10 am
So i found this on-line is there an easy way to do this in PB, the terminal command "ln" won't do it as you can only symbolic link directories
It seems the "link" command is the one there using, but can you import that into PB?
Cheers
Andrew
Also, thanks, any help would be appreciated
Also Also I guess i could just compile this, but would like it to run purely run in PB
Code: Select all
#include <unistd.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
if (argc != 3) {
fprintf(stderr,"Use: hlink <src_dir> <target_dir>\n");
return 1;
}
int ret = link(argv[1],argv[2]);
if (ret != 0)
perror("link");
return ret;
}
Cheers
Andrew
Also, thanks, any help would be appreciated
Also Also I guess i could just compile this, but would like it to run purely run in PB