summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-07-31 18:50:01 +0300
committerAlon Levy <alevy@redhat.com>2011-07-31 18:50:01 +0300
commitce8696f5a4337f08417df02c589d58f195414923 (patch)
treef4ecee0374ed26d029baf6a886f6c8736b158dde
parentb67fc8a53cfcc9d537aa703f7d81eab8936d3ba8 (diff)
allow --copy-in for single file
-rwxr-xr-xspice24
1 files changed, 2 insertions, 2 deletions
diff --git a/spice2 b/spice2
index d90d086..fcde91f 100755
--- a/spice2
+++ b/spice2
@@ -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)