diff options
author | Alon Levy <alevy@redhat.com> | 2011-07-31 18:50:01 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-31 18:50:01 +0300 |
commit | ce8696f5a4337f08417df02c589d58f195414923 (patch) | |
tree | f4ecee0374ed26d029baf6a886f6c8736b158dde | |
parent | b67fc8a53cfcc9d537aa703f7d81eab8936d3ba8 (diff) |
allow --copy-in for single file
-rwxr-xr-x | spice2 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -826,8 +826,8 @@ def copy_file_in(g, image, path, dest): def copy_dir_in(g, image, path): if not os.path.isdir(path): - print "expected %r to be a path" % path - sys.exit(1) + copy_file_in(g, image, path, '/') + return g if g == None: g = get_guestfs(image) print "copying %r contents to c:\\" % (path) |