Skip to content

Commit a6e84f7

Browse files
authored
fix(api.js): wrong command for isAbsolute (#11835)
1 parent d6bed20 commit a6e84f7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/path-plugin-is-absolute.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tauri-apps/api": "patch:bug"
3+
---
4+
5+
Fix error where using `isAbsolute` would return `Command not found`.

packages/api/src/path.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ async function basename(path: string, ext?: string): Promise<string> {
661661
* @since 1.0.0
662662
*/
663663
async function isAbsolute(path: string): Promise<boolean> {
664-
return invoke('plugin:path|isAbsolute', { path })
664+
return invoke('plugin:path|is_absolute', { path })
665665
}
666666

667667
export {

0 commit comments

Comments
 (0)