static String getFileNameFromPath(String path) { String result= path.split('/').last; result= result.split('\\').last; return result; }