fix(api): remove currentDir API from the path module

This commit is contained in:
Lucas Nogueira 2022-02-04 11:49:10 -03:00
parent 38a9b58219
commit a08509c641
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F
3 changed files with 6 additions and 18 deletions

View 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

View File

@ -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,