mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08: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
362 B
JavaScript
13 lines
362 B
JavaScript
'use strict';
|
|
|
|
// Recursive readdir accepts a Buffer path.
|
|
// 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, '..', 'common');
|
|
readdir(Buffer.from(testDirPath), { recursive: true }, common.mustSucceed());
|