[Cyberduck-trac] [Cyberduck] #2884: Spaces in file PATH or name prevent creation or expanding archives
Cyberduck
trac at trac.cyberduck.ch
Mon Jan 12 10:27:39 CET 2009
#2884: Spaces in file PATH or name prevent creation or expanding archives
--------------------+-------------------------------------------------------
Reporter: DaveN | Owner: dkocher
Type: defect | Status: assigned
Priority: normal | Milestone: 3.1.2
Component: core | Version: 3.1.1
Severity: normal | Keywords: archive zip tar spaces
--------------------+-------------------------------------------------------
Changes (by dkocher):
* status: new => assigned
* milestone: => 3.1.2
Old description:
> 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.
New description:
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.
--
--
Ticket URL: <http://trac.cyberduck.ch/ticket/2884#comment:1>
Cyberduck <http://cyberduck.ch>
FTP, SFTP, WebDAV and Amazon S3 Browser for Mac OS X.
More information about the Cyberduck-trac
mailing list