From 0cd53999d78f1d5c72f36cfd691306facb39c779 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 May 2018 16:50:12 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/strip.vala b/src/strip.vala index 59a69b8..e472d6b 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -230,7 +230,7 @@ public class StripApplication : GLib.Application { return 0; } - strip.scan_dir(opt_path); + strip.scan_dir(opt_path, ""); @@ -862,9 +862,9 @@ public class Strip : GLib.Object { } - public void scan_dir(string path) + public void scan_dir(string basepath, string subpath) { - var f = File.new_for_path(path); + var f = File.new_for_path(basepath + subpath); FileEnumerator file_enum; var cancellable = new Cancellable (); try { @@ -906,9 +906,9 @@ public class Strip : GLib.Object { } // other files to ignore? - this.scan_file(path , next_file.get_display_name()); + this.scan_file(basepath + subpath , next_file.get_display_name()); if(this.has_replaced) { - this.report_state("After scanning %s/%s".printf(path , next_file.get_display_name())); + this.report_state("After scanning %s/%s".printf(basepath + subpath , next_file.get_display_name())); } continue; } @@ -930,14 +930,14 @@ public class Strip : GLib.Object { } - var sp = path+"/"+next_file.get_display_name(); + var sp = subpath+"/"+next_file.get_display_name(); // skip modules. //print("got a file : " + sp); next_file = null; - this.scan_dir(sp); + this.scan_dir(basepath,sp); } -- 2.39.2