- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for SmbFilenameFilter (0.06 sec)
-
src/main/java/jcifs/smb1/smb1/SmbFilenameFilter.java
package jcifs.smb1.smb1; /** * Filter interface for SMB filename filtering. * This interface allows selective filtering of filenames * when listing directory contents in SMB shares. */ public interface SmbFilenameFilter { /** * Tests whether the specified filename should be included in a file list. * * @param dir the directory containing the file * @param name the name of the file
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/main/java/jcifs/smb/SmbFilenameFilter.java
package jcifs.smb; /** * Filter interface for SMB filename filtering. * * This interface allows selective filtering of filenames * when listing directory contents in SMB shares. */ public interface SmbFilenameFilter { /** * Tests whether the specified filename should be included in a file list. * * @param dir the directory containing the file * @param name the name of the file
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/smb/SmbFilenameFilterTest.java
*/ @Test @DisplayName("anonymous class implementation behaves correctly") void anonymousClassImplementation() throws Exception { SmbFilenameFilter filter = new SmbFilenameFilter() { @Override public boolean accept(SmbFile dir, String name) throws SmbException { return name != null && name.length() > 3; } };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java
SmbFile dir = Mockito.mock(SmbFile.class); SmbFilenameFilter filter = (d, n) -> n.equalsIgnoreCase("hello.txt"); assertTrue(filter.accept(dir, "Hello.TXT")); } @Test void acceptReturnsFalseWhenNameDoesNotMatch() throws Exception { SmbFile dir = Mockito.mock(SmbFile.class); SmbFilenameFilter filter = (d, n) -> n.equalsIgnoreCase("hello.txt");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
private static final class ResourceNameFilterWrapper implements ResourceNameFilter { /** * */ private final SmbFilenameFilter fnf; /** * @param fnf */ ResourceNameFilterWrapper(final SmbFilenameFilter fnf) { this.fnf = fnf; } @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/SmbEnumerationUtilTest.java
void resourceNameFilterWrapper_accept_falseForNonSmbFileParent_andNoDelegation() throws Exception { // Arrange SmbFilenameFilter delegate = mock(SmbFilenameFilter.class); Object wrapper = newPrivateInner("ResourceNameFilterWrapper", new Class<?>[] { SmbFilenameFilter.class }, delegate); SmbResource notAFileParent = mock(SmbResource.class); // Act boolean result =
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/smb1/smb1/SmbFile.java
* @return An array of filenames * @throws SmbException if an error occurs while listing the contents */ public String[] list(final SmbFilenameFilter filter) throws SmbException { return list("*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, filter, null); } /** * List the contents of this SMB resource as an array of
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/test/java/jcifs/smb/SmbFileTest.java
} @Test void testListFilesWithFilter() throws SmbException { // Arrange SmbFilenameFilter filter = (dir, name) -> name.endsWith(".txt"); doReturn(new SmbFile[0]).when(smbFile).listFiles((SmbFilenameFilter) filter); // Act SmbFile[] files = smbFile.listFiles(filter); // Assert assertNotNull(files);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)