Код: Выделить всё
val path = Path("""E:\a""")
val fileChannel = FileChannel.open(
path,
StandardOpenOption.READ,
StandardOpenOption.WRITE,
StandardOpenOption.CREATE_NEW,
StandardOpenOption.SPARSE,
)
Но я хочу знать, поддерживает ли файловая система OS+ SPARSE или нет, чтобы я мог отключить функцию в своем приложении.
Подробнее здесь: https://stackoverflow.com/questions/786 ... gramically