mergerfs/tests/TEST_use_ftruncate_after_unlink

16 lines
193 B
Text
Raw Normal View History

2025-06-05 23:47:42 -05:00
#!/usr/bin/env python3
import os
import sys
import tempfile
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
os.ftruncate(fd,1024)
os.unlink(filepath)
os.ftruncate(fd,1024)
os.close(fd)