Skip to content

Commit

Permalink
fix(api): remove currentDir API from the path module
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Feb 4, 2022
1 parent 38a9b58 commit a08509c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changes/api-remove-current-dir.md
@@ -0,0 +1,5 @@
---
"api": "patch"
---

Removed the `currentDir` API from the `path` module.
2 changes: 1 addition & 1 deletion core/tauri/scripts/bundle.js

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions tooling/api/src/path.ts
Expand Up @@ -412,22 +412,6 @@ async function videoDir(): Promise<string> {
})
}

/**
* Returns the path to the current working directory.
*
* @returns
*/
async function currentDir(): Promise<string> {
return invokeTauriCommand<string>({
__tauriModule: 'Path',
message: {
cmd: 'resolvePath',
path: '',
directory: BaseDirectory.Current
}
})
}

/**
* Returns the path to the suggested log directory.
*
Expand Down Expand Up @@ -578,7 +562,6 @@ export {
runtimeDir,
templateDir,
videoDir,
currentDir,
logDir,
BaseDirectory,
sep,
Expand Down

0 comments on commit a08509c

Please sign in to comment.