The REAL nativePath for air.File.documentsDirectory.resolvePath("My Music") in VISTA

AIR is performing some magic in VISTA OS with the following:
var musicFolder =
air.File.documentsDirectory.resolvePath("My Music");
air.trace(musicFolder.nativePath) writes
"c:\Users\username\Documents\My Music"
When I use windows explorer to try to navigate to that
folder... IT DOES NOT EXIST
air.trace(musicFolder.exists) writes "true"
It turns out that AIR is doing an internal substitution
air.File.documentsDirectory.resolvePath("My Music") -->
air.File.userDirectory.resolvePath("Music")
I want to display the native path for "My Music" so my users
know where to find their Music folder if they are trying to find it
using their OS native file browser / explorer.
How can I get a straight answer as to
"C:\Documents\username\My Music" exists or not (vs.
c:\users\username\Music")

There's no substitution being done here. The resolvePath()
call doesn't guarantee that a file exists. If you want to check
that, use the File.exists property.

Similar Messages

Maybe you are looking for

  • Old Serial # not working to re-install Adobe Photoshop CS2 on different computer

    Having a problem installing my copy of Adobe Photoshop CS2 - I have the CDs and I have the serial # from the installation on the old computer, but when I enter the information on the new computer, it tells me it is an invalid serial number.  The old

  • My Mac Keeps Crashing and making me sad...

    Hi there, So I am on a MacBook Pro running OS 10.6.8. Recently my Mac will just crash out of no where. This first started happening a way back when I was running a Google hang out and all of a sudden it would just crash out of no where. I don't have

  • My Ipod shuffle is not recognized

    Hi, this is my first post (I mean I never had a reason to do it until today). I bought my iPod shuffle on september 29, 2005. I had months of happines with my ipod shuffle, until this week. I plugged my ipod to my computer and it didn't recognized, d

  • Can't get video monitor to work

    I inherited the JVC TM-A101G, but I can't seem to get a picture on it (well, I did once, but the next time I logged on it had disappeared again). Here's my setup: I use a Panasonic mini-DV camcorder as my "deck" Firewire from the camcorder to the G4

  • Restricting Row number in pivot table

    Hi, As we can restrict the row number in table by putting 'Row Count' can we restrict number of rows in pivot table? Regards, Deepak