Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

vfs: recursive mkdir returns backing-directory path for RealFSProvider

オープン
#66,220 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@trivikr がすでに取り組んでいます。

2026年9月23日 から。

評価

この issue はまだ評価されていません。

説明

vfs
Version

main

Platform
All
Subsystem

vfs

What steps will reproduce the bug?
import { mkdtempSync, mkdirSync, existsSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { create, RealFSProvider } from 'node:vfs';

const root = mkdtempSync(join(tmpdir(), 'vfs-'));
const myVfs = create(new RealFSProvider(root));
const mountPoint = myVfs.mount();

const asked = join(mountPoint, 'a/b');
const created = mkdirSync(asked, { recursive: true });
console.log('created:', created);
console.log('existsSync(created):', existsSync(created));
console.log('existsSync(asked):', existsSync(asked));
How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

created should be <mountPoint>/a and pass fs.existsSync()

What do you see instead?
created: /dev/null/vfs/0/var/folders/42/54jl1_3x4hz06cf7bc_kzd4h0000gn/T/vfs-MMktQW/a
existsSync(created): false
existsSync(asked): true

created is <mountPoint>/<backing-root>/a — the absolute backing-directory path leaks through — and fs.existsSync(created) is false

Additional information

No response

主要言語
JavaScript
スター
122k
フォーク
37.4k
平均マージ
4日 2時間
マージ済み PR(30日)
277

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/node のほかの issue

nodejs/node の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。