Benign debian Download

test-fs-long-path.js

Imports Node.js common test helperimports fs
SHA-256800701ceca69d60eb7e257ff66a0c67961f8980fd0219f755351136a256f787b

Evidence

English function-word token "the" lines 1–6
1// Copyright Joyent, Inc. and other Node contributors.
2//
3// Permission is hereby granted, free of charge, to any person obtaining a
4// copy of this software and associated documentation files (the
5// "Software"), to deal in the Software without restriction, including
6// without limitation th …
English function-word token "for" lines 15–17
15:43… O THE WARRANTIES OF
16// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS …
imports fs lines 19–49
19:5… THERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20// USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22'use strict';
23const common = require('../common');
24if (!common.isWindows)
25 common.skip('this test is Windows-specific.');
26
27const fs = require('fs');
28const path = require('path');
29
30const tmpdir = require('../common/tmpdir');
31
32// Make a path that will be at least 260 chars long.
33const fileNameLen = Math.max(260 - tmpdir.path.length - 1, 1);
34const fileName = path.join(tmpdir.path, 'x'.repeat(fileNameLen));
⋯7 lines
42});
43
44fs.writeFile(fullPath, 'ok', common.mustSucceed(() => {
45 fs.stat(fullPath, common.mustSucceed());
46
47 // Tests https://github.com/nodejs/node/issues/39721
48 fs.realpath.native(fullPath, common.mustSucceed());
49}));

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.