View previous topic :: View next topic |
Author |
Message |
maros -
Joined: 07 Dec 2006 Posts: 1
|
Posted: Thu Dec 07, 2006 8:58 am Post subject: newbie question: multiple directory listing |
|
|
Is there a easy way to integrate multiple directories into one virtual directory? This seems easy but I haven't seen anything on this so far.
For example: d:\Media\Photos & e:\Media\Photos into /photos
I want to do this seemlessly so that any slideshow programs, scripts, etc would be able to read everything together. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Dec 07, 2006 1:45 pm Post subject: Re: newbie question: multiple directory listing |
|
|
maros,
You can write a script that will merge the contents of both directories and display them. That script will then be put in /photos.
But the server cannot have 2 real directories associated with the same alias merged: what to do when scripts are running there (should they run in dir1 context or dir2's?) Another problem occurs when there are two files with the same name (for example test.jpg) in both directories. Which one to serve when someone requests /photo/test.jpg? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
rami_ejailat -
Joined: 20 Dec 2006 Posts: 1
|
Posted: Wed Dec 20, 2006 5:16 pm Post subject: |
|
|
There's an alternative way that I'm currently using, but it has a bug that I'm trying to resolve.
1) I use zFTPsrever to merge the direcotories (freeware FTP server)
2) Now, I use FTPDrive (http://killprog.com/fdrve.html) to map the FTP account into a Windows physical drive, for example, F:\
3) Finally, I create an alias in Abyss for this F:\ drive and use it.
Now, for the limitation and the workaround:
This works but with one critical issue: at windows startup, Abyss doesn't recognize this mapped drive. I have to restart FTPDrive to make it work, restarting Abyss doesn't help. If Abyss is configured to start as a Windows Server, this restart is inevitable!
4) As a workaround, I used a startup manager to delay the startup of Abyss for 1 minute to make sure the FTPDrive has fully started. This configuration seems to be working so far.
If anybody has a simpler solution, I'd love to hear about! |
|
Back to top |
|
 |
|