api/src/main/java/org/ocpsoft/rewrite/config/Filesystem.java
public static Filesystem directoryExists(final File resource)
   {
      return new Filesystem(resource, new FileFilter()
      {
         @Override
         public boolean accept(File file)
         {
            return file.exists() && file.isDirectory();
         }

         @Override
         public String toString()
         {
            return "Filesystem.directoryExists(" + resource.getAbsolutePath() + ")";
         }
      });
   }
public static Filesystem directoryExists(final File resource)
   {
      return new Filesystem(resource, new FileFilter()
      {
         @Override
         public boolean accept(File file)
         {
            return file.exists() && file.isDirectory();
         }

         @Override
         public String toString()
         {
            return "Filesystem.directoryExists(" + resource.getAbsolutePath() + ")";
         }
      });
   }
Create a {@link Condition} that returns <code>true</code> if the given {@link File} exists in the file-system of
the host environment, and is a directory.

<p>
The given file path may be parameterized:
<p>
<code>
new File("/tmp/directory/") <br>
new File("c:\tmp\{param}") <br>
...
</code>
<p>

@param location {@link ParameterizedPattern} specifying the location of the directory.

@see {@link ConfigurationRuleParameterBuilder#where(String)}