PHP 7.4.33
Preview: index.js Size: 347 B
/var/www/podio-api-client/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;
	}
};

Directory Contents

Dirs: 0 × Files: 5
Name Size Perms Modified Actions
429 B lrw-r--r-- 2023-12-27 12:33:08
Edit Download
347 B lrw-r--r-- 2023-12-27 12:33:08
Edit Download
1.08 KB lrw-r--r-- 2023-12-27 12:33:08
Edit Download
607 B lrw-r--r-- 2023-12-27 12:33:08
Edit Download
1.39 KB lrw-r--r-- 2023-12-27 12:33:08
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).