Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for SmbFileFilter (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/smb/SmbFileFilter.java

     */
    
    package jcifs.smb;
    
    /**
     * Filter interface for SMB file filtering.
     *
     * This interface allows selective filtering of files
     * when listing directory contents in SMB shares.
     */
    public interface SmbFileFilter {
    
        /**
         * Tests whether the specified SMB file should be included in a file list.
         *
         * @param file the SMB file to test for inclusion
         * @return whether the given file should be included
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFileFilter.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    /**
     * Filter interface for SMB file listings
     */
    public interface SmbFileFilter {
        /**
         * Tests whether the specified SMB file should be included in a file list.
         *
         * @param file the SMB file to test for inclusion
         * @return true if the file should be included, false otherwise
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbFileFilterTest.java

        void accept_returnsTrueForDirectory_andVerifiesInteraction() throws Exception {
            // Arrange: filter that accepts directories only
            SmbFileFilter filter = f -> f.isDirectory();
            when(smbFile.isDirectory()).thenReturn(true);
    
            // Act
            boolean result = filter.accept(smbFile);
    
            // Assert
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbEnumerationUtil.java

            /**
             *
             */
            private final SmbFileFilter ff;
    
            /**
             * @param ff
             */
            ResourceFilterWrapper(final SmbFileFilter ff) {
                this.ff = ff;
            }
    
            SmbFileFilter getFileFilter() {
                return this.ff;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

            @Test
            void resourceFilterWrapper_accept_falseForNonSmbFile_andNoDelegation() throws Exception {
                // Arrange
                SmbFileFilter delegate = mock(SmbFileFilter.class);
                Object wrapper = newPrivateInner("ResourceFilterWrapper", new Class<?>[] { SmbFileFilter.class }, delegate);
    
                SmbResource notAFile = mock(SmbResource.class);
    
                // Act
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/DosFileFilter.java

     */
    
    package jcifs.smb1.smb1;
    
    /**
     * DOS-style file filter implementation for SMB1 protocol.
     * Filters files based on wildcard patterns and DOS file attributes.
     */
    public class DosFileFilter implements SmbFileFilter {
    
        /**
         * The wildcard pattern for filtering file names.
         */
        protected String wildcard;
    
        /**
         * The DOS file attributes to filter on.
         */
        protected int attributes;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

         */
        public SmbFile[] listFiles(final SmbFileFilter filter) throws SmbException {
            return listFiles("*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, filter);
        }
    
        String[] list(final String wildcard, final int searchAttributes, final SmbFilenameFilter fnf, final SmbFileFilter ff)
                throws SmbException {
            final ArrayList list = new ArrayList();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbFile.java

         * @return An array of {@code SmbResource} objects
         * @throws SmbException if an error occurs while listing the files
         */
        public SmbFile[] listFiles(final SmbFileFilter filter) throws SmbException {
            return SmbEnumerationUtil.listFiles(this, "*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, filter);
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top