| | | Forum Newbie
       
Group: Forum Members Last Login: 9/6/2004 9:26:00 AM Posts: 1, Visits: 1 |
| The chmod-command is very useful, really !
The function to chmod more files ans folders is very useful too !
But the command doesn't understand spaces in foldernames !
eq
site chmod 777 /html/Bilder/Party & Fun/ski fahren
is'nt unterstood (thats the command ws_FTP Pro uses)
site chmod 777 "/html/Bilder/Party & Fun/ski fahren"
is unterstood !
Is there anyway to work arouns this, but typing everything ?
Thank you !
BLACK |
| | | | 
Time Traveler
       
Group: Moderators Last Login: 7/16/2008 8:55:05 AM Posts: 176, Visits: 9 |
| It works just like an FTP command prompt. A chmod command looks for two arguments: a permission setting and a file/folder name. But the arguments are delimited by the space character (" ") before it's passed to the chmod command. Therefore 'site chmod 777 /html/Bilder/Party & Fun/ski fahren' passes the following arguments to chmod:
1: 777 2: /html/Bilger/Party 3: & 4: Fun/ski 5: fahren
This definitely isn't what chmod is looking for, though. Quoting is how we tell the chmod command that we only have two arguments, so that 'site chmod 777 "/html/Bilder/Party & Fun/ski fahren"' passes the following arguments to chmod:
1: 777 2: /html/Bilder/Party & Fun/ski fahren
This is the way it works in command-line FTP, DOS, and UNIX. The behavior you have noticed is exactly the way it is supposed to work.
Brandon Felger
IMail Install Developer
Ipswitch |
| |
|
|