mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-29 12:03:59 +08:00
16 lines
189 B
Plaintext
16 lines
189 B
Plaintext
|
#!/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)
|