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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
basename(file, extname(file))
This issue has been upstreamed from tauri-apps/tauri-docs#1905
use ext from call extname for basename return wired result:
extname
basename
const ext = await extname('some-json-file.json'); // 'json' const nameNoExt = await basename('some-json-file.json', ext); // 'some--file.'
Maybe the correct usage is as below?:
const ext = await extname('some-json-file.json'); // 'json' const nameNoExt = await basename('some-json-file.json', '.' + ext); // some-json-file
The text was updated successfully, but these errors were encountered:
this is an issue for the main tauri repo and is being fixed in tauri-apps/tauri#9165
Sorry, something went wrong.
No branches or pull requests
use ext from call
extname
forbasename
return wired result:Maybe the correct usage is as below?:
The text was updated successfully, but these errors were encountered: