typings
This commit is contained in:
parent
609c0f2b96
commit
1627485d6a
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,9 @@ const { promisify } = require("util");
|
||||||
const FS = require("fs");
|
const FS = require("fs");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
/**
|
||||||
|
* @param {string} path
|
||||||
|
*/
|
||||||
access: path =>
|
access: path =>
|
||||||
new Promise(resolve => {
|
new Promise(resolve => {
|
||||||
FS.access(path, FS.constants.F_OK, err => {
|
FS.access(path, FS.constants.F_OK, err => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue