X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fguestfs.py;h=291af5d6b2203fde3dc22077b9f4bebe2480997d;hb=2dc9e8a858b62830d15a8186fe575eb7903d2171;hp=4a23cdbb02037788259fa031ec675b25ca7ae4db;hpb=e118c14b9552de311cbc1734e03a3226b484c1e8;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index 4a23cdb..291af5d 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1190,3 +1190,21 @@ class GuestFS: """ return libguestfsmod.grub_install (self._o, root, device) + def cp (self, src, dest): + u"""This copies a file from "src" to "dest" where "dest" is + either a destination filename or destination directory. + """ + return libguestfsmod.cp (self._o, src, dest) + + def cp_a (self, src, dest): + u"""This copies a file or directory from "src" to "dest" + recursively using the "cp -a" command. + """ + return libguestfsmod.cp_a (self._o, src, dest) + + def mv (self, src, dest): + u"""This moves a file from "src" to "dest" where "dest" is + either a destination filename or destination directory. + """ + return libguestfsmod.mv (self._o, src, dest) +