Module jcifs

Interface SmbFilenameFilter


public interface SmbFilenameFilter
Filter interface for SMB filename filtering. This interface allows selective filtering of filenames when listing directory contents in SMB shares.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(SmbFile dir, String name)
    Tests whether the specified filename should be included in a file list.
  • Method Details

    • accept

      boolean accept(SmbFile dir, String name) throws SmbException
      Tests whether the specified filename should be included in a file list.
      Parameters:
      dir - the directory containing the file
      name - the name of the file
      Returns:
      whether the given filename should be included
      Throws:
      SmbException - if an SMB error occurs during evaluation