public static String extractNameFromPath(final String name) {
    return new File(name).getName();
  }
Returns a copy of the specified String with a trailing path separator. This method ensures that
there are no duplicate trailing separators.

@param path the path to ensure a trailing separator for
@return the copied String or an empty String if path is null or empty.
java/zylib/src/main/java/com/google/security/zynamics/zylib/io/FileUtils.java