There is a folder returns 'false' for folder selected with 'answer folder'

Jim Bufalini jim at visitrieve.com
Tue Sep 8 23:20:51 EDT 2009


Hi Trevor,

> I have a customer using a Windows 2003 server with a network drive
> that he has mapped to his Windows computer. I have a test stack that
> calls "answer folder" and then checks if the folder that was selected
> exists.
> 
> The path to the folder being selected looks like this:
> 
> //Aname/Astring
> 
> 'there is a folder' returns false and I'm not able to write a file to
> the directory.
> 
> Has anyone seen similar behavior and know what is going on?

Yes. Windows doesn't like forward slashes for folders. So, there is a file
//computerName/folderName/filename works, but there is a folder
//computerName/folderName fails. I really don't know why this is, but it is.
So after your answer folder, add the line *replace slash with backslash in
it* and it will work. :-)

Aloha from Hawaii

Jim Bufalini




More information about the use-livecode mailing list