MCPcopy Index your code
hub / github.com/microsoft/SandDance / is_stale

Function is_stale

python/jupyter-widget/setupbase.py:226–233  ·  view source on GitHub ↗

Test whether the target file/directory is stale based on the source file/directory.

(target, source)

Source from the content-addressed store, hash-verified

224
225
226def is_stale(target, source):
227 """Test whether the target file/directory is stale based on the source
228 file/directory.
229 """
230 if not os.path.exists(target):
231 return True
232 target_mtime = recursive_mtime(target) or 0
233 return compare_recursive_mtime(source, cutoff=target_mtime)
234
235
236class BaseCommand(Command):

Callers 1

runMethod · 0.85

Calls 2

recursive_mtimeFunction · 0.85
compare_recursive_mtimeFunction · 0.85

Tested by

no test coverage detected