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
path.relative
I'm working with a couple projects where using the Tauri API to get the relative path between two files would be useful.
I would like to update the Tauri commands and JS APIs to export a relative method/function similar to the one provided by the Node.js path module:
relative
import { relative } from '@tauri/api/path'; // POSIX relative('/data/orandea/test/aaa', '/data/orandea/impl/bbb') == '../../impl/bbb'; // Windows relative('C:\\orandea\\test\\aaa', 'C:\\orandea\\impl\\bbb') == '..\\..\\impl\\bbb';
Create a custom Tauri command in each project.
Originally discussed in #8270, posted by Natejoestev back on November 20, 2023
The text was updated successfully, but these errors were encountered:
I'm willing to create a PR for this work, but wanted to submit an issue first per the Pull Request Guidelines in the Tauri Contribution Guide
Sorry, something went wrong.
apologies for the late reply @frankolson, feel free to open a PR, thanks
No branches or pull requests
Describe the problem
I'm working with a couple projects where using the Tauri API to get the relative path between two files would be useful.
Describe the solution you'd like
I would like to update the Tauri commands and JS APIs to export a
relative
method/function similar to the one provided by the Node.js path module:Alternatives considered
Create a custom Tauri command in each project.
Additional context
Originally discussed in #8270, posted by Natejoestev back on November 20, 2023
The text was updated successfully, but these errors were encountered: