mergerfs/tests/TEST_use_fchmod_after_unlink

16 lines
189 B
Plaintext
Raw Permalink Normal View History

2019-03-22 09:31:27 +08:00
#!/usr/bin/env python3
import os
import sys
import tempfile
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
os.fchmod(fd,0o777)
os.unlink(filepath)
os.fchmod(fd,0o777)
os.close(fd)