|
copy a directory link with -Rs
i have a directory that i need to copy into symbolic links. the problem is that the copy doesn't work for directories.
example, here is the contents of my directory:
- index.php
- images/
of course there are more files, but this will do for now. i'm going to have to copy the contents of this directory often, and i need it to make the symbolic link to the images directory too.
cp -Rs /home/usr/myapp/* ./
that will only copy the symbolic link for all the files. the thing is that i want the directory images/ to be a symbolic link too.
instead, it creates a directory named images that is not a symbolic link, but all the files in the images directory are links.
maybe it doesn't matter that much, but i want to effectively do the same thing that: ln -s /home/usr/myapp/images would do.
any ideas?
__________________
testing 1 2 3
|