Skip to content
Snippets Groups Projects
Commit 47d92085 authored by dos's avatar dos Committed by dos
Browse files

sim: Return st_size and st_mtime in stat result

That's how the real thing behaves.
parent 3cc95b71
Branches
Tags
No related merge requests found
......@@ -138,7 +138,7 @@ orig_stat = os.stat
def _stat(path):
res = orig_stat(path)
# lmao
return os.stat_result((res.st_mode, 0, 0, 0, 0, 0, 0, 0, 0, 0))
return os.stat_result((res.st_mode, 0, 0, 0, 0, 0, res.st_size, 0, res.st_mtime, 0))
os.stat = _stat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment