Missing NTFS/ReFS sparse support
da2x opened this issue · 3 comments
da2x commented
NTFS requires files to be created with the FILE_ATTRIBUTE_SPARSE_FILE attribute to treat them as sparse. This is different from other modern OSes where you don’t need to do anything special.
I tested with fsutil.exe sparse queryflag supposedly_sparse.file and various calls to check file sizes, and found that the files aren’t marked as sparse files on NTFS.
RangerMauve commented
Is there a way to set this flag in the node.js FS module? I can't find any docs for it.
da2x commented
mafintosh commented
In latest (sparse: true)