Home > SYS_FileSystem > existsPathInFileSystem
SYS_FileSystem.existsPathInFileSystem() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Check whether a file or directory exists in the file system
Signature
typescript
function existsPathInFileSystem(uri: string): Promise<boolean>;1
Parameters
Parameter | Type | Description |
|---|---|---|
uri | string | File resource locator. An absolute path containing the complete file name is required |
Returns
Promise<boolean>
Whether the file or directory exists
Remarks
Note 1: This API is only valid for clients. Calling it in a browser environment will always throw Error
Note 2: This API requires the user to enable the extension external interaction permission, if not enabled, it will always throw Error ADD since EDA v3.2.167