Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symlink generates empty alias file?

Tags:

macos

symlink

I'm trying to create a folder that is going to contain all files that are in another folder.

This is the tree structure. I want to symlink source to target.

.
├── source-folder
    └── source <-- source folder
└── controllers
    └── another-folder
        └── yet-another-folder
            └── target <-- target folder

I tried

ln -s source-folder/source controllers/another-folder/yet-another-folder/target

but it only creates an empty alias file.

How do I create a folder that contains the same data that is in the source-folder/source folder?

like image 410
William Avatar asked Aug 26 '26 06:08

William


1 Answers

Better to create symlinks with full paths; it then works as expected

like image 149
Ben Avatar answered Sep 03 '26 08:09

Ben



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!