return 0;
}
- strip.scan_dir(opt_path);
+ strip.scan_dir(opt_path, "");
}
- 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 {
}
// 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;
}
}
- 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);
}