summaryrefslogtreecommitdiff
path: root/lib/internal/fs/promises.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/fs/promises.js')
-rw-r--r--lib/internal/fs/promises.js56
1 files changed, 30 insertions, 26 deletions
diff --git a/lib/internal/fs/promises.js b/lib/internal/fs/promises.js
index 7660ff66be..31613780a7 100644
--- a/lib/internal/fs/promises.js
+++ b/lib/internal/fs/promises.js
@@ -46,7 +46,7 @@ const {
const pathModule = require('path');
const { promisify } = require('internal/util');
-const kHandle = Symbol('handle');
+const kHandle = Symbol('kHandle');
const { kUsePromises } = binding;
const getDirectoryEntriesPromise = promisify(getDirents);
@@ -507,29 +507,33 @@ async function readFile(path, options) {
}
module.exports = {
- access,
- copyFile,
- open,
- opendir: promisify(opendir),
- rename,
- truncate,
- rmdir,
- mkdir,
- readdir,
- readlink,
- symlink,
- lstat,
- stat,
- link,
- unlink,
- chmod,
- lchmod,
- lchown,
- chown,
- utimes,
- realpath,
- mkdtemp,
- writeFile,
- appendFile,
- readFile
+ exports: {
+ access,
+ copyFile,
+ open,
+ opendir: promisify(opendir),
+ rename,
+ truncate,
+ rmdir,
+ mkdir,
+ readdir,
+ readlink,
+ symlink,
+ lstat,
+ stat,
+ link,
+ unlink,
+ chmod,
+ lchmod,
+ lchown,
+ chown,
+ utimes,
+ realpath,
+ mkdtemp,
+ writeFile,
+ appendFile,
+ readFile,
+ },
+
+ FileHandle
};