Skip to content

os: add chdir() from libuv#322

Merged
saghul merged 1 commit intosaghul:masterfrom
samuelbrian:chdir
Nov 7, 2022
Merged

os: add chdir() from libuv#322
saghul merged 1 commit intosaghul:masterfrom
samuelbrian:chdir

Conversation

@samuelbrian
Copy link
Copy Markdown
Contributor

I could use chdir() via FFI, but since it's cross-platform through libuv I figured it's a pretty easy inclusion into tjs.

@saghul
Copy link
Copy Markdown
Owner

saghul commented Nov 4, 2022

Makes sense, thanks! The path module we currently ship is posix only though, so the path compare fails. I think if you use tjs.realpath() on the result it will normalize it properly.

Going forward we probably need to embed a proper Windows path module.

@samuelbrian
Copy link
Copy Markdown
Contributor Author

Thanks for the suggestion @saghul. All passing now.

@saghul saghul merged commit c3cad1d into saghul:master Nov 7, 2022
@saghul
Copy link
Copy Markdown
Owner

saghul commented Nov 7, 2022

Thank you!

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.

2 participants