Код: Выделить всё
import fs from "fs/promises";
Код: Выделить всё
const dir = await fs.opendir(...);
await dir.sync(); // error: no sync method exists
Код: Выделить всё
const dir = await fs.opendir(...);
await fs.fsync(dir.fd); // error: no fsync method exists
< /code>
< /li>
< /ol>
Как я могу использовать мой каталог с использованием node.js fs /probision < /code>? Необходимо fsync < /code> a Directory? fsync () каталог, содержащий файл , также достигла диска. Для этого
eplicit fsync () в дескрипторе файла для каталога is
need.
Подробнее здесь: https://stackoverflow.com/questions/797 ... -directory
Мобильная версия