Java Root Path Get getRootPath()

Here you can find the source of getRootPath()

Description

get Root Path

License

Open Source License

Declaration

public static String getRootPath() 

Method Source Code


//package com.java2s;
//License from project: GNU General Public License 

import java.io.File;

public class Main {
    public static String getRootPath() {
        return File.listRoots()[0].getAbsolutePath();
    }// w w  w . j av a 2  s  .com
}

Related

  1. getRootFolderPath(File file)
  2. getRootName(File f)
  3. getRootName(String fnm)
  4. getRootName(String pathname)
  5. getRootPath()
  6. getRootPath()
  7. getRootPath(String testDir)
  8. getRootPathName()