mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 03:47:37 +03:00
fix(api): remove currentDir
API from the path
module
This commit is contained in:
parent
38a9b58219
commit
a08509c641
5
.changes/api-remove-current-dir.md
Normal file
5
.changes/api-remove-current-dir.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"api": "patch"
|
||||
---
|
||||
|
||||
Removed the `currentDir` API from the `path` module.
|
File diff suppressed because one or more lines are too long
@ -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.
|
||||
*
|
||||
@ -578,7 +562,6 @@ export {
|
||||
runtimeDir,
|
||||
templateDir,
|
||||
videoDir,
|
||||
currentDir,
|
||||
logDir,
|
||||
BaseDirectory,
|
||||
sep,
|
||||
|
Loading…
Reference in New Issue
Block a user