Files
node/test/known_issues/test-fs-readdir-sync-recursive-with-buffer.js
T
2026-07-12 06:16:34 +00:00

16 lines
448 B
JavaScript

'use strict';
// This test will fail because the implementation does not properly
// handle the case when the path is a Buffer and the function is called
// in recursive mode.
// Refs: https://github.com/nodejs/node/issues/58892
require('../common');
const { readdirSync } = require('node:fs');
const { join } = require('node:path');
const testDirPath = join(__dirname, '..', '..');
readdirSync(Buffer.from(testDirPath), { recursive: true });