mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Fixes: https://github.com/nodejs/node/issues/58892 Refs: https://github.com/nodejs/node/issues/52663 Signed-off-by: avivkeller <me@aviv.sh> PR-URL: https://github.com/nodejs/node/pull/65524 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
'use strict';
|
|
|
|
// Recursive readdir accepts a Buffer path.
|
|
// Refs: https://github.com/nodejs/node/issues/58892
|
|
|
|
require('../common');
|
|
|
|
const { readdirSync } = require('node:fs');
|
|
const { join } = require('node:path');
|
|
|
|
const testDirPath = join(__dirname, '..', 'common');
|
|
readdirSync(Buffer.from(testDirPath), { recursive: true });
|