mergerfs/tests/TEST_use_fstat_after_unlink

16 lines
175 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
import tempfile
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
os.fstat(fd)
os.unlink(filepath)
os.fstat(fd)
os.close(fd)