Kaydet (Commit) 70c20a82 authored tarafından root's avatar root

fix sysconf mtime bug

üst 186d17e4
......@@ -18,6 +18,8 @@
import os
import sys
from pathlib import Path
# INARY Modules
import inary.context as ctx
import inary.util as util
......@@ -34,7 +36,8 @@ def getmtime(path):
"""Get file or directory modify time"""
if not os.path.exists(path):
return 0
return int(os.path.getmtime(path))
f = Path(path)
return int(f.lstat().st_mtime)
def getltime(name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment