API Reference > imodeljs-clients > iTwinServiceClients > FileHandler > basename basename Method Get file name from the path. basename(filePath: string): string Parameter Type Description filePath string Path of the file. Returns - string File name. Defined in core/clients/src/FileHandler.ts Line 62 Last Updated: 13 June, 2024