export class FileUtils {
    /**
     * Reads the last segment of the file path and returns it as a file name.
     *
     * @param path THe file path.
     */
    static getFileName(path) {
        const delimiter = path.includes('/') ? '/' : '\\';
        const last = path.split(delimiter).pop();
        return last || '';
    }
}
//# sourceMappingURL=FileUtils.js.map