Version of TAR in tarfile module? TAR 1.14 or 1.15 port to Windows?

Diez B. Roggisch deets at nospam.web.de
Sat Aug 20 11:39:59 EDT 2005


Claudio Grondi wrote:
> remember. I work in a Windows command shell
> (DOS-box) and mount says:
> j: on /cygdrive/j , but I don't know how to write
> the entire path
> "j:\o\archives\images\dump.tar",
> so that the file can be found by tar.exe and
> unpacked to "i:\images" .
> tar.exe --extract --directory=tmp -f j:/o/archives/images/dump.tar
> results in:
> /usr/bin/tar: j\:/o/archives/images/dump.tar: Cannot open: Input/Output
> error
> telling
> tar.exe --extract --directory=tmp -f /cygdrive/j/o/archives/images/dump.tar
> doesn't work either.


Try the cygpath-command like this:

echo `cygpath c:\\some\\windows\\path`

That should yield

/cygdrive/c/some/windows/path

Alternatively, do somethink like this

mkdir -p /mnt/j

mount j: /mnt/j

Then /mnt/j should be the root for all files under j:

HTH Diez



More information about the Python-list mailing list