Java Path File Check nio isValidRootArgument(Path argument)

Here you can find the source of isValidRootArgument(Path argument)

Description

is Valid Root Argument

License

Open Source License

Declaration

protected static boolean isValidRootArgument(Path argument) 

Method Source Code

//package com.java2s;
// copy, modify, merge, publish, distribute, sublicense,

import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    protected static boolean isValidRootArgument(Path argument) {
        return (Files.exists(argument) && Files.isDirectory(argument));
    }//from   w  w w .j a  va 2  s.co  m
}

Related

  1. isValidFileType(Path filePath)
  2. isValidHomeDirectory(final Path path)
  3. isValidPath(String path)
  4. isValidPath(String path)
  5. isValidPath(String path)
  6. isValidWildFlyHome(final Path path)
  7. isVideo(Path p)
  8. isZip(Path path)
  9. isZip(Path path)