code: private static String getFileNameInPath(String path) {
          String fName;
          if (path.indexOf('/') != -1) {
              fName = path.substring(path.lastIndexOf('/') + 1);
          } else {
              fName = path;
          }
          return fName;
      }
docs: Returns the filename in a path. For example with path = "foo/bar/crawljax.txt" returns
  "crawljax.txt"
  
  @param path
  @return the filename from the path