Skip to content

feat: get_cwd and set_cwd #1014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

feat: get_cwd and set_cwd #1014

wants to merge 10 commits into from

Conversation

wassup05
Copy link
Contributor

@wassup05 wassup05 commented Jul 5, 2025

Depends on #1011

  1. User facing functions added are
  • get_cwd (cwd, err) - Gets the current working directory (cwd) of the process.
  • set_cwd (path, err) - Sets the current working directory (cwd) of the process.
  1. Binds to getcwd, chdir on Unix and _getcwd, _chdir on Windows
  2. Error handling is done through state_type and both the platform specific error code and the user friendly error message are provided if an error occurs

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