If this list is non-empty, only those directories are synced. We introduce the new concept path filters (or something like that), which is a list of directories. This would also allow us to deduce scan percentage. For a single wildcard, something like 2, but a bit more clever where we only traverse one level.Īlternatively, we could do this double walk thing, where we establish what we are going to walk first, and then walk it.If we have a double wildcard exclude, do not skip if the directory we are currently at matches the prefix of the exclude (up to the wildcard).If we have an unachored exclude, never skip dir.Possible fix for making the decision of whether or not we should SkipDir could be done by the matcher under the following conditions: If ignore cache is disabled it's a bit harder, as we most likely won't know the outcome whether or not parent directories were ignored or not, so we'd have to have some special exclusion list which we populate going one directory up at a time which would force the matcher to exclude given directories from ignores, and then rescan those paths (and those paths only) causing parent directories to be indexed. ) until we reach the part which is not ignored anymore. If they have, we could forcefully mark them as unignored in the cache, and rewalk them one directory at a time (cd. ![]() ![]() If we never skip dir, and we manage to match something to an exclude pattern, we can use matchers cache to check if the parent directories have been ignored or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |