Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

vfs: recursive mkdir returns backing-directory path for RealFSProvider

Aperta
#66,220 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@trivikr ci sta già lavorando.

Dal 23/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
JavaScript
Stelle
122k
Fork
37.4k
Merge medio
4g 2h
PR unite (30g)
277

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nodejs/node

Tutte le issue di nodejs/node

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.