Files
node/test/known_issues/test-fs-readdir-recursive-with-buffer.js
T
2025-07-24 20:08:32 +02:00

16 lines
478 B
JavaScript

'use strict';
// This test will fail because the 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
const common = require('../common');
const { readdir } = require('node:fs');
const { join } = require('node:path');
const testDirPath = join(__dirname, '..', '..');
readdir(Buffer.from(testDirPath), { recursive: true }, common.mustCall());