[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...escape code for a 'space' in file pathnames for...

<< Back to: Anonymous FTP: Frequently Asked Questions (FAQ) List

Question by Braden McCollum
Submitted on 2/19/2004
Related FAQ: Anonymous FTP: Frequently Asked Questions (FAQ) List
Rating: Not yet rated Rate this question: Vote
Is there an escape code for a 'space' in file pathnames for FTP??
From RFC959: Pathname is defined to be the character string which must be input to a file system by a user in order to identify a file. Pathname normally contains device and/or directory names, and file name specification.  FTP does not yet specify a standard pathname convention.  Each user must follow the file naming conventions of the file systems involved in the transfer.

I don't know if FTP commands allows spaces in the filenames/pathnames. I logged in to a unix server sol7 and entered this:

ftp> ls "-l /label/710c/rev1/fonts/Courier New-100-600-PCL.fnt"
200 PORT command successful.
150 ASCII data connection for /bin/ls (172.16.113.189,2330) (0 bytes).
/label/710c/rev1/fonts/Courier: No such file or directory
New-100-600-PCL.fnt: No such file or directory

Now if I'm in a UNIX shell and I enter this, it works fine:
ls -l /label/710c/rev1/fonts/Courier\ New-100-600-PCL.fnt

Note in the Unix command above how I escaped the space right after Courier. I tried the same thing with the FTP command and got the result that it wasn't found.

So- is there an escape code for a 'space'?? I'm currently using ?, but this is more of a wildcard....




Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: Anonymous FTP: Frequently Asked Questions (FAQ) List


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.