Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/hamrishealth.aplikasipos.info/node_modules/path-exists/
Upload File :
Current File : /home/aplikasiposinfo/www/hamrishealth.aplikasipos.info/node_modules/path-exists/index.js

'use strict';
const fs = require('fs');
const {promisify} = require('util');

const pAccess = promisify(fs.access);

module.exports = async path => {
	try {
		await pAccess(path);
		return true;
	} catch (_) {
		return false;
	}
};

module.exports.sync = path => {
	try {
		fs.accessSync(path);
		return true;
	} catch (_) {
		return false;
	}
};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]