Skip to content
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

Output of fs/list-dir (i.e. UnixPath) cannot be passed as-is to shell #140

Closed
fosskers opened this issue Jun 27, 2023 · 1 comment
Closed

Comments

@fosskers
Copy link

shell (etc.) from babashka.process can accept a :dir argument, but it seems that this value cannot accept a path found via fs/list-dir.

This would be useful in the case where you want to programmatically call shell in some directory, but you don't know ahead of time which one it is. For now, calling str on a path given from fs/list-dir gets around the issue, but it would be convenient if the original type could be passed directly.

Thank you!

@borkdude borkdude transferred this issue from babashka/fs Jun 27, 2023
@fosskers
Copy link
Author

Thanks!

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

No branches or pull requests

1 participant