Skip to content

implement virtual CWD tracking and relative path resolution #165

Open
mavdol wants to merge 5 commits intomainfrom
patch/v0.8.1/enable-process-chdir
Open

implement virtual CWD tracking and relative path resolution #165
mavdol wants to merge 5 commits intomainfrom
patch/v0.8.1/enable-process-chdir

Conversation

@mavdol
Copy link
Copy Markdown
Member

@mavdol mavdol commented Apr 10, 2026

More control cwd control inside the sandbox:

process.chdir('hello-folder')   // _virtualCwd = 'hello-folder'
fs.readdirSync('.')             // '.' → 'hello-folder' → matches preopen 
fs.readFileSync('file.txt')     // 'file.txt' → 'hello-folder/file.txt' 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant