We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 23c06a5 + 2ad17a6 commit c16a27cCopy full SHA for c16a27c
1 file changed
modules/util.py
@@ -148,6 +148,11 @@ def reset(self):
148
"""Clear the cache of all directories."""
149
self.cached_dirs.clear()
150
151
+ def update_file_entry(self, path):
152
+ """Update the cache for a specific directory."""
153
+ dirname, filename = os.path.split(path)
154
+ if cached_dir := self.cached_dirs.get(dirname):
155
+ cached_dir.update_entry(filename)
156
157
def topological_sort(dependencies):
158
"""Accepts a dictionary mapping name to its dependencies, returns a list of names ordered according to dependencies.
0 commit comments