Java Parent Path Get getParentPath(String path)

Here you can find the source of getParentPath(String path)

Description

get Parent Path

License

Apache License

Declaration

public static String getParentPath(String path) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {

    public static String getParentPath(String path) {
        return new File(path).getParent();
    }/*from w  w  w  .j  av  a  2 s  . c om*/
}

Related

  1. getParentPath(File file, boolean wrap, boolean escape)
  2. getParentPath(String absolutePath)
  3. getParentPath(String filePath)
  4. getParentPath(String fullpath)
  5. getParentPath(String path)
  6. getParentPathAndName(String path, StringBuilder parent)
  7. getParentPathname(String pathname)