diff --git a/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java b/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java index b4e9fd58d28a693b9d2cd82d9fdee41cb5387b30..ee5219833e09850b6df13e38c8f55e7c1e48c2f3 100644 --- a/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java +++ b/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java @@ -103,6 +103,18 @@ public final class FileUtilities } }; + /** + * A file filter that accepts all entries but the hidden ones. + */ + public static final FileFilter ACCEPT_ALL_BUT_HIDDEN_FILTER = new FileFilter() + { + @Override + public boolean accept(File pathname) + { + return pathname.isHidden() == false; + } + }; + /** * Copies the content of the specified source file to the specified destination file. *