Archive for September, 2003

Using expandPath with Virtual Directories and IIS

Thanks to Nathan Strutz for submitting his findings on using expandPath with virtual directories:

Nathan found that the following code…

expandPath("../myDirectory/mySharedDirectory/")

…will return…

c:\inetpub\wwwroot\myDirectory\mySharedDirectory\

However, if he adds a slash to the beginning, like this…

expandPath("/../myDirectory/mySharedDirectory/")

…he gets…

\\sharedComputer\ShareName\shareLocation\mySharedDirectory\

Anyone care to confirm or deny this behavior? (I’m running on OS X right now, so I can’t.)

If you have tips or tricks that you would like to blog vicariously through me (you get the credit, of course), send them to cantrell@macromedia.com. Don’t worry about including a self-addressed stamped envelope.