tds/src/main/java/thredds/util/StringValidateEncodeUtils.java
@SuppressWarnings({"SimplifiableIfStatement"})
  public static boolean validFilePath(String path) {
    if (path == null)
      return false;
    if (path.indexOf(File.pathSeparatorChar) != -1)
      return false;
    return validPath(path);
  }
@SuppressWarnings({"SimplifiableIfStatement"})
  public static boolean validFilePath(String path) {
    if (path == null)
      return false;
    if (path.indexOf(File.pathSeparatorChar) != -1)
      return false;
    return validPath(path);
  }
@ SuppressWarnings ( { "SimplifiableIfStatement" } ) public static boolean validFilePath ( String path ) { if ( path == null ) return false ; if ( path . indexOf ( File . pathSeparatorChar ) != - 1 ) return false ; return validPath ( path ) ; }
Return true if the given String is a valid File path.
<p>
<p>
A String is considered a valid File path if:
<ul>
<li> when passed to validPath(String) true is returned; and</li>
<li> it does not contain the Java File path separator
(java.io.File.pathSeparatorChar) which is system dependant.</li>
</ul>

@param path the String to validate
@return true if the given String is a valid File path.
@see #validPath(String)
Return true if the given String is a valid File path . <p > <p > A String is considered a valid File path if : <ul > <li > when passed to validPath ( String ) true is returned ; and< / li > <li > it does not contain the Java File path separator ( java . io . File . pathSeparatorChar ) which is system dependant . < / li > < / ul >