Has anyone had any luck with symlinking (or hardlinking) just _parts_ of /files? (Symlinking all of /files seems to be trivially easy, and is done on multi-sites all the time but that won't work for us in this case)

The problem: we have a development environment, using subversion and multiple sandboxes, along with a production environment.
As we develop, we run multiple checkouts of code, and we need (or at least desire) to have the /files/images directory available WITHOUT copying it repeatedly...

I played with symlinking with no positive results (weird behavior, including errors) and I'm asking for advice and better yet, success stories in doing so..
When the symlink was within the /files directory, it seems to work sometimes, but moving it outside of there never seemed to work correctly at all.
Using .htaccess rewrites isn't an answer, since the directory must be drupal writable.

I'm aware of the new module http://drupal.org/project/file_defer That might be an answer, but we're trying to find a symlink-style solution before we go that way.

Comments

greg.harvey’s picture

We're having same issue - weird directory does not exist error when trying to symlink just the pictures directory for user pictures! =(

--
http://www.drupaler.co.uk/