mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-23 14:58:34 +08:00
16 lines
225 B
Python
Executable File
16 lines
225 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
import tempfile
|
|
|
|
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
|
|
|
|
os.fchown(fd,os.getuid(),os.getgid())
|
|
|
|
os.unlink(filepath)
|
|
|
|
os.fchown(fd,os.getuid(),os.getgid())
|
|
|
|
os.close(fd)
|