MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_directory_mtime

Function get_directory_mtime

tools/build_cpp_projects.py:302–312  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

300
301
302def get_directory_mtime(directory):
303 # For example check src/common/ directory for newest modification time
304 assert os.path.isdir(directory)
305 files = glob.glob(os.path.join(directory, "*"))
306 ret_mtime = 0
307 for header_file in files:
308 mtime = os.path.getmtime(header_file)
309 if mtime > ret_mtime:
310 ret_mtime = mtime
311 assert ret_mtime
312 return ret_mtime
313
314
315if __name__ == "__main__":

Callers 1

smart_compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected