Lines Matching refs:fsPromises
6 const fsPromises = fs.promises; constant
54 await fsPromises.writeFile(dest, buffer);
60 await fsPromises.writeFile(dest, stream);
71 fsPromises.writeFile(otherDest, stream, { signal }),
77 await fsPromises.writeFile(dest, iterable);
85 assert.rejects(fsPromises.writeFile(dest, iterableWith(value)), {
93 await fsPromises.writeFile(dest, stream2, 'latin1');
100 await fsPromises.writeFile(dest, bufferIterable);
106 await fsPromises.writeFile(dest, asyncIterable);
114 assert.rejects(fsPromises.writeFile(dest, value), {
126 fsPromises.writeFile(otherDest, buffer, { signal }),
132 await fsPromises.appendFile(dest, buffer2, { flag: null });
139 const data = await fsPromises.readFile(dest);
145 const data = await fsPromises.readFile(dest, 'utf-8');