Module jcifs

Interface SmbFileFilter

All Known Implementing Classes:
DosFileFilter

public interface SmbFileFilter
Filter interface for SMB file filtering. This interface allows selective filtering of files when listing directory contents in SMB shares.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tests whether the specified SMB file should be included in a file list.
  • Method Details

    • accept

      boolean accept(SmbFile file) throws SmbException
      Tests whether the specified SMB file should be included in a file list.
      Parameters:
      file - the SMB file to test for inclusion
      Returns:
      whether the given file should be included
      Throws:
      SmbException - if an error occurs while accessing the file