I have a project stored at /website. There is a hidden folder inside of it called .modman which contains a folder named test

content of /website/.modman/test:


Is there a way to symlink the content of /website/.modman/test/ to /website/ so that the new structure will look like this:


? I tried it with modman-php, but it fails to create a symlink.

  • Just use the standard mklink /d command (NB you'll need to use back-slashes as directory path separators). – AFH Sep 15 '18 at 14:43
  • How would the exact command look like in my above example? – Black Sep 15 '18 at 14:46
  • 1
    Off the top of my head, mklink /d \website\foo \website\test\foo and similar for bar. Type mklink /? for more information. – AFH Sep 15 '18 at 14:51
  • Thanks! This looks like a lot of work on big projects though. Is there a simpler way, maybe a function? – Black Sep 15 '18 at 15:00
  • I don't know what you are trying to achieve: if you are trying to make it appear that your test site is live, simply set up /website as the appropriate alias in your web server. This may be an X-Y problem. – AFH Sep 15 '18 at 15:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.