Skip to content

Commit a08509c

Browse files
committed
fix(api): remove currentDir API from the path module
1 parent 38a9b58 commit a08509c

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

.changes/api-remove-current-dir.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": "patch"
3+
---
4+
5+
Removed the `currentDir` API from the `path` module.

core/tauri/scripts/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/api/src/path.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -412,22 +412,6 @@ async function videoDir(): Promise<string> {
412412
})
413413
}
414414

415-
/**
416-
* Returns the path to the current working directory.
417-
*
418-
* @returns
419-
*/
420-
async function currentDir(): Promise<string> {
421-
return invokeTauriCommand<string>({
422-
__tauriModule: 'Path',
423-
message: {
424-
cmd: 'resolvePath',
425-
path: '',
426-
directory: BaseDirectory.Current
427-
}
428-
})
429-
}
430-
431415
/**
432416
* Returns the path to the suggested log directory.
433417
*
@@ -578,7 +562,6 @@ export {
578562
runtimeDir,
579563
templateDir,
580564
videoDir,
581-
currentDir,
582565
logDir,
583566
BaseDirectory,
584567
sep,

0 commit comments

Comments
 (0)