public static Filesystem fileExists(final File resource)
   {
      return new Filesystem(resource, new FileFilter()
      {
         @Override
         public boolean accept(File file)
         {
            return file.exists() && file.isFile();
         }

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

         @Override
         public String toString()
         {
            return "Filesystem.fileExists(" + resource.getAbsolutePath() + ")";
         }
      });
   }
public static Filesystem fileExists ( final File resource ) { return new Filesystem ( resource , new FileFilter ( ) { @ Override public boolean accept ( File file ) { return file . exists ( ) && file . isFile ( ) ; } @ Override public String toString ( ) { return "Filesystem.fileExists(" + 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 normal file.

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

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

@see {@link ConfigurationRuleParameterBuilder#where(String)}
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 normal file .