MCPcopy
hub / github.com/bugy/script-server / modification_date

Function modification_date

src/utils/file_utils.py:15–17  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

13
14
15def modification_date(file_path):
16 time_string = time.ctime(os.path.getmtime(file_path))
17 return datetime.datetime.strptime(time_string, "%a %b %d %H:%M:%S %Y")
18
19
20def deletion_date(file_path):

Callers 2

deletion_dateFunction · 0.85
last_modificationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected