private static String getFilenameInfo(String path) {
    if (StringUtils.isEmpty(path)) {
      return null;
    }
    try {
      return new File(path).getCanonicalPath();
    }
    catch (IOException ex) {
      return new File(path).getAbsolutePath();
    }
  }
private static String getFilenameInfo ( String path ) { if ( StringUtils . isEmpty ( path ) ) { return null ; } try { return new File ( path ) . getCanonicalPath ( ) ; } catch ( IOException ex ) { return new File ( path ) . getAbsolutePath ( ) ; } }
Generate filename info for given path for error messages.
@param path Path
@return Absolute path