fix(fs): add options argument for exists function closes #734 (#744)

closes #734
This commit is contained in:
Amr Bashir
2023-11-21 01:31:00 +02:00
committed by GitHub
parent eea3df56ef
commit 88d260d901
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -580,8 +580,8 @@ async function renameFile(
*
* @since 2.0.0
*/
async function exists(path: string): Promise<boolean> {
return await invoke("plugin:fs|exists", { path });
async function exists(path: string, options: FsOptions = {}): Promise<boolean> {
return await invoke("plugin:fs|exists", { path, options });
}
/**