code: public boolean hasDirectory(final String name) throws IOException
     {
        return SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Boolean>()
        {
           public Boolean run() throws Exception
           {
              return new File(baseDir, name).exists();
  
           }
        });
     }
docs: {@inheritDoc}