Spaces in folder names on server

Andre Garzia soapdog at mac.com
Mon Nov 13 14:21:19 EST 2006


jacque,

try:

replace " " with "\ " in tFileReference...

unix usually uses "\ " to escape spaces in strings, it might work.

cheers
andre

On Nov 13, 2006, at 7:19 PM, J. Landman Gay wrote:

> I have a cgi that needs to work with files that are in folders  
> whose names contain spaces. I've written a test cgi that simply  
> returns whether a file or folder exists. It says this folder exists:
>
> /home/folder1/folder2
>
> It says this folder does not exist:
>
> /home/folder1/folder 2
>
> The problem, I believe, is the space in the folder name. I have  
> tried substituting spaces with %20, URL-encoding them, and escaping  
> them this way:
>
> /home/folder1/folder\ 2
>
> but none of it works. How would I reference these?
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list