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

Spaces in file PATH or name prevent creation or expanding archives #2884

Closed
cyberduck opened this issue Jan 11, 2009 · 1 comment
Closed
Assignees
Labels
bug fixed sftp SFTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

DaveN created the issue

What I do:
I connect via SSH. Open a folder, and right-click a file to select Create archive (name).tar

What happens:
A tar archive is created in the same directory. However the name does NOT end with .tar, because the new file name is truncated after any white space. If there are no spaces in the file PATH, he entire name is used, and the archive ends with .tar. (yay!)

If right-click on the file name and select create Archive-> file name.zip and the file path has any spaces it it, no zip file is created. (I searched the entire computer just in case the file was being saved elsewhere.)

If the file path name does not have any spaces, then all 4 types of archives are created successfully in the same directory.

The Expand archive did not work for all 4 types (zip, tar, b2, gz), if there are no spaces in the file name, but the file path does include a space.

I tried this while connected to both Mac OSX 10.3.9 & 10.4.9 with the same results for both.

Thanks! Log follows:


  • Can not create a ZIP archive if spaces in file path:
	zip warning: name not matched: with
	zip warning: name not matched: space.gif.zip
	zip warning: name not matched: /Users/macmedix/Documents/macmedix/filename
	zip warning: name not matched: with
	zip warning: name not matched: space.gif

zip error: Nothing to do! (try: zip -rv /Users/macmedix/Documents/macmedix/filename . -i with space.gif.zip /Users/macmedix/Documents/macmedix/filename with space.gif)

  • Creating a Zip archive (no spaces in file name) Works OK:
 adding: Users/macmedix/Documents/macmedix/filename_no_space.gif	(in=32336) (out=31701) (deflated 2%)
total bytes=32336, compressed=31701 -> 2% savings


  • If a filename has no spaces, but the path name does have spaces, then the archive operation is not successful.

So the problem appears to be spaces in the file name or file path. Either will cause a problem.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In cf290f9.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants