mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 19:37:00 -05:00
18 lines
229 B
Text
18 lines
229 B
Text
|
|
#!/usr/bin/env python3
|
||
|
|
|
||
|
|
import os
|
||
|
|
import sys
|
||
|
|
import tempfile
|
||
|
|
|
||
|
|
atime = 1234
|
||
|
|
mtime = 1234
|
||
|
|
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
|
||
|
|
|
||
|
|
os.utime(fd,(atime,mtime))
|
||
|
|
|
||
|
|
os.unlink(filepath)
|
||
|
|
|
||
|
|
os.utime(fd,(atime,mtime))
|
||
|
|
|
||
|
|
os.close(fd)
|