PHP 8.2.30
Preview: index.js Size: 252 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/pkg-dir/node_modules/path-exists/index.js

'use strict';
const fs = require('fs');

module.exports = fp => new Promise(resolve => {
	fs.access(fp, err => {
		resolve(!err);
	});
});

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

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
252 B lrw-r--r-- 2026-02-28 00:26:42
Edit Download
1.09 KB lrw-r--r-- 2026-02-28 00:26:52
Edit Download
641 B lrw-r--r-- 2026-02-28 00:26:32
Edit Download
1.27 KB lrw-r--r-- 2026-02-28 00:27:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).