mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-06-04 00:14:14 +00:00
Custom_wiki: Do not limit file search to subdirectories in /orig/file/
This commit is contained in:
parent
f60b94760d
commit
9916c3efaf
@ -66,18 +66,11 @@ class Fs_root_wkr {
|
||||
Orig_fil_mgr rv = new Orig_fil_mgr();
|
||||
Io_url orig_changes_log = orig_dir.GenSubFil("xowa.orig.changes.log");
|
||||
|
||||
// loop over all dirs in orig_dir
|
||||
Io_url[] sub_dirs = Io_mgr.Instance.QueryDir_args(orig_dir).DirInclude_(true).ExecAsUrlAry();
|
||||
int sub_dirs_len = sub_dirs.length;
|
||||
for (int i = 0; i < sub_dirs_len; i++) {
|
||||
Io_url sub_dir = sub_dirs[i];
|
||||
// if (String_.Len(sub_dir.NameOnly()) != 1) continue; // only look at subdirs with 1 char; EX: "/orig_dir/a/" vs "/orig_dir/math/"
|
||||
|
||||
// loop over all fils in that 1-char dir
|
||||
Io_url[] fils = Io_mgr.Instance.QueryDir_args(sub_dir).Recur_(recurse).ExecAsUrlAry();
|
||||
// loop over all fils in orig_dir
|
||||
Io_url[] fils = Io_mgr.Instance.QueryDir_args(orig_dir).Recur_(recurse).ExecAsUrlAry();
|
||||
int fils_len = fils.length;
|
||||
for (int j = 0; j < fils_len; j++) {
|
||||
Io_url fil = fils[j];
|
||||
for (int i = 0; i < fils_len; i++) {
|
||||
Io_url fil = fils[i];
|
||||
byte[] fil_name_bry = Bry_.new_u8(fil.NameAndExt());
|
||||
|
||||
String orig_change_type = null;
|
||||
@ -115,7 +108,6 @@ class Fs_root_wkr {
|
||||
fil_itm = Orig_fil_row.New_by_fs(fil, fil_name_bry, ext.Id());
|
||||
rv.Add(fil_itm);
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
private Db_conn Init_orig_db() {
|
||||
|
Loading…
Reference in New Issue
Block a user