We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In discussing the Fp.absolute* family of APIs in #251, we were discussing how hopefully users don't have to call these explicitly too often!
Fp.absolute*
There are two more paths that would be useful to include in Dir that would commonly be used:
Dir
Dir.executablePath(): unit => Fp.t(absolute) - the absolute path to the running executable. Probably want an option to explicitly say if symlinks should be resolved or not. Having a nice API for this could really streamline the various corner cases we need to handle in Revery, today: https://github.com/revery-ui/revery/blob/4173462fc4b53fc70761f35babf1a8b9767c5b4c/src/Core/Environment.re#L59
Dir.executablePath(): unit => Fp.t(absolute)
Dir.workingDirectory(): unit => Fp.t(absolute) - the absolute path to the current working directory - a thin wrapper over Sys.getcwd() + Fp.absolute.
Dir.workingDirectory(): unit => Fp.t(absolute)
Sys.getcwd()
Fp.absolute
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In discussing the
Fp.absolute*
family of APIs in #251, we were discussing how hopefully users don't have to call these explicitly too often!There are two more paths that would be useful to include in
Dir
that would commonly be used:Dir.executablePath(): unit => Fp.t(absolute)
- the absolute path to the running executable. Probably want an option to explicitly say if symlinks should be resolved or not. Having a nice API for this could really streamline the various corner cases we need to handle in Revery, today: https://github.com/revery-ui/revery/blob/4173462fc4b53fc70761f35babf1a8b9767c5b4c/src/Core/Environment.re#L59Dir.workingDirectory(): unit => Fp.t(absolute)
- the absolute path to the current working directory - a thin wrapper overSys.getcwd()
+Fp.absolute
.The text was updated successfully, but these errors were encountered: