import debugModule from 'debug';
import * as fs from 'node:fs';
import { promisify } from 'node:util';
let _debug;
function debug(...args) {
    if (!_debug)
        _debug = debugModule('@heroku-cli/command:file');
    _debug(...args);
}
export function exists(f) {
    // eslint-disable-next-line n/no-deprecated-api
    return promisify(fs.exists)(f);
}
export function readdir(f) {
    debug('readdir', f);
    return promisify(fs.readdir)(f);
}
export function readFile(f) {
    debug('readFile', f);
    return promisify(fs.readFile)(f);
}
