X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=python%2Fguestfs.py;h=6417caf4cfc00a9c006ec2439ec79c8a65522645;hb=f087927c5c9ef891ba6c943ce887ae9f40258a83;hp=4d71b23cd87369fd157fbfd605633531e8d28e4e;hpb=24ccbb29ac475187f51a27dcd318db2b4824a0c1;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index 4d71b23..6417caf 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -997,3 +997,35 @@ class GuestFS: """ return libguestfsmod.checksum (self._o, csumtype, path) + def tar_in (self, tarfile, directory): + u"""This command uploads and unpacks local file "tarfile" + (an *uncompressed* tar file) into "directory". + + To upload a compressed tarball, use "g.tgz_in". + """ + return libguestfsmod.tar_in (self._o, tarfile, directory) + + def tar_out (self, directory, tarfile): + u"""This command packs the contents of "directory" and + downloads it to local file "tarfile". + + To download a compressed tarball, use "g.tgz_out". + """ + return libguestfsmod.tar_out (self._o, directory, tarfile) + + def tgz_in (self, tarball, directory): + u"""This command uploads and unpacks local file "tarball" (a + *gzip compressed* tar file) into "directory". + + To upload an uncompressed tarball, use "g.tar_in". + """ + return libguestfsmod.tgz_in (self._o, tarball, directory) + + def tgz_out (self, directory, tarball): + u"""This command packs the contents of "directory" and + downloads it to local file "tarball". + + To download an uncompressed tarball, use "g.tar_out". + """ + return libguestfsmod.tgz_out (self._o, directory, tarball) +