mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 15:51:30 +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)
|