title: isDirectory() not working for UNIX directory
body: <p>I am getting the isDirectory() value as false for the below code :-</p>
  
  <pre><code>public void validateFile() throws IOException {
  
          File dir = new File(Labels.INPUT_FILE_DIR).getCanonicalFile(); 
          // Labels.INPUT_FILE_DIR is ./Input (i.e. my Input folder in UNIX server
          String code, fileName = "";
          ArrayList&lt;String&gt; fileList = new ArrayList&lt;String&gt;();
  
          Logger.info(cName,mName,"");
          System.out.println("dir.isDirectory() " + dir.isDirectory()); // getting false here
  
          if (dir.isDirectory()) {
  
              for (File tempFile : dir.listFiles()) {
                  System.out.println("inside the for loop ");
  
              }
          }
  
      }
  </code></pre>
  
  <p>Am i doing something wrong ?
  Could anyone please help me out.</p>