mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-12-11 19:53:39 +08:00
15 lines
226 B
Python
Executable File
15 lines
226 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
import tempfile
|
|
|
|
(srcfd,src) = tempfile.mkstemp(dir=sys.argv[1])
|
|
(tgtfd,tgt) = tempfile.mkstemp(dir=sys.argv[1])
|
|
|
|
os.unlink(tgt)
|
|
os.rename(src,tgt)
|
|
|
|
os.close(srcfd)
|
|
os.close(tgtfd)
|