Cyberduck Mountain Duck CLI

#2884 closed defect (fixed)

Spaces in file PATH or name prevent creation or expanding archives

Reported by: DaveN Owned by: dkocher
Priority: normal Milestone: 3.1.2
Component: sftp Version: 3.1.1
Severity: normal Keywords: archive zip tar spaces
Cc: Architecture:

Description (last modified by dkocher)

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 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:
    	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 /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.

Change History (3)

comment:1 Changed on Jan 12, 2009 at 9:27:37 AM by dkocher

  • Description modified (diff)
  • Milestone set to 3.1.2
  • Status changed from new to assigned

comment:2 Changed on Jan 12, 2009 at 9:28:21 AM by dkocher

  • Component changed from core to sftp
  • Description modified (diff)

comment:3 Changed on Jan 12, 2009 at 3:11:53 PM by dkocher

  • Resolution set to fixed
  • Status changed from assigned to closed

In r4464.

Note: See TracTickets for help on using tickets.