Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds extraneous leading space to directory names #12092

Closed
cyberduck opened this issue Jan 22, 2006 · 6 comments
Closed

Adds extraneous leading space to directory names #12092

cyberduck opened this issue Jan 22, 2006 · 6 comments
Assignees
Labels
bug fixed ftp FTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

anonymous created the issue

When I log into my FTP server, I see the directory names correctly but Cyberduck is unable to navigate between them because, when issuing commands to the server, it introduces an extraneous leading space into the last directory in the path. For instance, if my working directory is /usr/users/username/www/ and I click on the directory named "directory," then it will fail to change directories, and will produce the following error message:

FTP Error: /usr/users/username/www/ directory: No such file or directory.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Cannot reproduce. Probably the path has been indeed named with a space but the server does not support spacing?

@cyberduck
Copy link
Collaborator Author

ekiike commented

Hello,
I also have problem with leading space character in directory name
try for example to connect to one IBM ftp site ftp.software.ibm.com in anonymous
try to go to /storage/tivoli-storage-managemnt
error message: FTP Error: /storage/ tivoli-storage-management: No such file or directory.

I have this problem with many directories

@cyberduck
Copy link
Collaborator Author

@dkocher commented

The problem is that the server uses an inconsisting formatting for the file listing:

-rw-r--r--   1 20708    205         3553312 Feb 18 2005  D3I0_515.fmr
-rw-r--r--   1 20708    205             319 May 10 2005  D3I0_526.fixlist
-rw-r--r--   1 20708    205         3514148 May 10 2005  D3I0_526.fmr
-rw-r--r--   1 20708    205             203 May 10 2005  D3I0_52B.fixlist
-rw-r--r--   1 20708    205         3514660 May 10 2005  D3I0_52B.fmr
-rw-r--r--   1 20708    205             194 Oct 17 14:40 D3I0_805.fixlist
-rw-r--r--   1 20708    205         3510772 Oct 17 14:40 D3I0_805.fmr
-rw-r--r--   1 20708    205             200 Oct 17 14:40 D3I0_81A.fixlist
-rw-r--r--   1 20708    205         3518688 Oct 17 14:40 D3I0_81A.fmr

Note there is an additional space after the date formating Month-Day-Year which is interpreted as a filename beginning with a blank.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Fixing this would open a regression bug. Files beginning with whitespace wouldn't be recognized anymore.
bedspreads and comforters

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Enter in a Terminal.app

defaults write ch.sudo.cyberduck ftp.parser.whitespaceAware false

as a workaround.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Fix in fe4cff3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed ftp FTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants