title: linux - cannot view directory created from java
body: <p>I am using the following piece of code to create a directory in java, under Linux:</p>
  
  <pre><code>String dir = "~/tempDir/";
  if (!IOUtils.createDirectory(dir)) {
      throw new IOException("could no create the local store directory: "
              + dir );
  }
  
  LOGGER.info("local store successfully created.");
  </code></pre>
  
  <p>The application seems to create the directory, as I get no errors and it is working fine.
  The problem is that I cannot see this directory on the disk; I am looking in my home directory.
  I need to mention that this is a java web application running under tomcat.</p>
  
  <p>Does anyone have any idea why I cannot see this directory?</p>