mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-25 09:03:37 +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)
|