Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
tbf
/
new2023.tbf.ro
/
node_modules
/
mz
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
89.40.16.97
System
Linux server.atelieruldeit.ro 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User
tbf
PHP Version
7.3.33
Software
Apache
Doc root
Writable
close
Edit File :
fs.js
| Size :
1.02
KB
Copy
var Promise = require('any-promise') var fs try { fs = require('graceful-fs') } catch(err) { fs = require('fs') } var api = [ 'appendFile', 'chmod', 'chown', 'close', 'fchmod', 'fchown', 'fdatasync', 'fstat', 'fsync', 'ftruncate', 'futimes', 'lchown', 'link', 'lstat', 'mkdir', 'open', 'read', 'readFile', 'readdir', 'readlink', 'realpath', 'rename', 'rmdir', 'stat', 'symlink', 'truncate', 'unlink', 'utimes', 'write', 'writeFile' ] typeof fs.access === 'function' && api.push('access') typeof fs.copyFile === 'function' && api.push('copyFile') typeof fs.mkdtemp === 'function' && api.push('mkdtemp') require('thenify-all').withCallback(fs, exports, api) exports.exists = function (filename, callback) { // callback if (typeof callback === 'function') { return fs.stat(filename, function (err) { callback(null, !err); }) } // or promise return new Promise(function (resolve) { fs.stat(filename, function (err) { resolve(!err) }) }) }
Back