ElectronApp.getFileIcon method
ElectronApp › getFileIcon
Unofficial
Fetches a path's associated icon.Signature:
getFileIcon(path: string, options?: ElectronFileIconOptions | undefined): Promise<ElectronNativeImage>Parameters:
| Parameter | Type | Description |
|---|---|---|
| path | string | The path whose icon to fetch. |
| options? | ElectronFileIconOptions | undefined | Options controlling the icon size. |
Returns: Promise<ElectronNativeImage> — A promise resolved with the icon.