public static String getFileName(String filePath) throws HyscaleException {
		if (StringUtils.isBlank(filePath)) {
			throw new HyscaleException(CommonErrorCode.EMPTY_FILE_PATH);
		}

		if (filePath.substring(filePath.length() - 1, filePath.length()).equals(ToolConstants.FILE_SEPARATOR)) {
			throw new HyscaleException(CommonErrorCode.FOUND_DIRECTORY_INSTEAD_OF_FILE, filePath);
		}

		int lastDirIndex = filePath.lastIndexOf(ToolConstants.FILE_SEPARATOR);
		if (lastDirIndex >= 0) {
			return filePath.substring(lastDirIndex + 1, filePath.length());
		} else {
			return filePath;
		}
	}
Returns the file name from the given filepath

@param filePath
@return
commons/src/main/java/io/hyscale/commons/io/HyscaleFilesUtil.java