- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for SmbFileFilter (0.41 sec)
-
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
* bypass the filter logic. */ public class SmbFileFilterTest { /** * A minimal implementation that accepts every {@link SmbFile}. */ private final SmbFileFilter ALWAYSACTIVE = new SmbFileFilter() { @Override public boolean accept(SmbFile file) throws SmbException { // Never inspect the file – simply accept. return true; } }; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.3K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
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. */ protected int attributes;
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. */ protected int attributes;
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/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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)