Spaces in folder names on server

Jim Ault JimAultWins at yahoo.com
Mon Nov 13 15:12:42 EST 2006


Get a directory for
"/home/folder1/" 
"/home/folder1/ Test Folder/"
and see if there is another character in the name, or if you have
permissions set OK.

Jim Ault
Las Vegas

On 11/13/06 11:41 AM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:

> Andre Garzia wrote:
>> jacque,
>> 
>> try:
>> 
>> replace " " with "\ " in tFileReference...
>> 
>> unix usually uses "\ " to escape spaces in strings, it might work.
> 
> Thanks Andre, but that's what I did originally and it fails. Here is my
> script:
> 
>    put "/home/folder1/Test Folder/Second Folder" into tName
>    replace space with "\ " in tName
>    get there is a folder tName
>    put "Content-Type: text/plain" & cr & cr
>    put tName & "--" & it
> 
> This returns false, even though I can see the folder in an ftp client.
> If I ask for:
> 
>    "/home/folder1"
> 
> it returns true. I thought the escaping would work, but it doesn't. Any
> other tricks? This particular host is running Redhat ES4.





More information about the use-livecode mailing list