search for: 9765a79

Displaying 1 result from an estimated 1 matches for "9765a79".

Did you mean: 765279
2016 Jun 13
1
[PATCH] customize: Give an error if --truncate-recursive path does not exist (RHBZ#1345809).
...ly truncating: /home/foo virt-customize: error: libguestfs error: find0: /home/foo: No such file or directory Thanks: Xianghua Chen --- mllib/common_utils.ml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml index dfffae3..9765a79 100644 --- a/mllib/common_utils.ml +++ b/mllib/common_utils.ml @@ -779,12 +779,10 @@ let rm_rf_only_files (g : Guestfs.guestfs) ?filter dir = ) let truncate_recursive (g : Guestfs.guestfs) dir = - if g#is_dir dir then ( - let files = Array.map (Filename.concat dir) (g#find dir) in - le...