Java is Root File isRootPath(File file)

Here you can find the source of isRootPath(File file)

Description

is Root Path

License

Open Source License

Declaration

public static boolean isRootPath(File file) 

Method Source Code


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

import java.io.File;

public class Main {
    public static boolean isRootPath(File file) {
        return (file.getAbsoluteFile().getParentFile() == null) ? true : false;
    }/* w  ww . j  a v a  2  s.c om*/
}

Related

  1. isRoot()
  2. isRoot(File file)
  3. isRootDir(File dir)
  4. isRootDir(String dir)
  5. isRootOfSeqWare(File workingDirectory)