- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for DosFileFilter (0.21 sec)
-
src/main/java/jcifs/smb/DosFileFilter.java
*/ package jcifs.smb; /** * File filter implementation for DOS-style wildcards and attributes. * Supports filtering files based on DOS wildcards and file attributes. * */ public class DosFileFilter implements SmbFileFilter { /** * The wildcard pattern for filtering file names. */ protected String wildcard; /** * The DOS file attributes to filter on. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
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. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
// Given a DosFileFilter with specific attributes dosFileFilter = new DosFileFilter("*.*", filterAttributes); // and a mock SmbFile with specific attributes when(mockFile.getAttributes()).thenReturn(fileAttributes); // When the accept method is called boolean result = dosFileFilter.accept(mockFile); // Then the result should be as expected
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
import static org.mockito.Mockito.when; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class DosFileFilterTest { private DosFileFilter filter; @BeforeEach public void setup() { filter = new DosFileFilter("*", SmbFile.ATTR_NORMAL); } @Test public void testAcceptReturnsTrueWhenAttributesMatch() throws Exception { SmbFile file = mock(SmbFile.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0)