- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 27 for FileEntry (0.36 seconds)
-
src/main/java/jcifs/smb1/smb1/FileEntry.java
package jcifs.smb1.smb1; /** * Represents a file or directory entry in SMB1 protocol. */ public interface FileEntry { /** * Gets the name of the file or directory. * * @return the file or directory name */ String getName(); /** * Gets the type of the entry. * * @return the entry type */ int getType(); /** * Gets the file attributes. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 881 bytes - Click Count (0) -
src/main/java/jcifs/smb/FileEntry.java
*/ package jcifs.smb; /** * Interface representing a file entry in an SMB directory listing. * Provides access to file metadata and attributes. * */ public interface FileEntry { /** * Gets the file name. * * @return the file name */ String getName(); /** * Gets the file type. * * @return the file type */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.9K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java
dfsRootEnum.info.e = dfsEnumArray; // When FileEntry[] entries = dfsRootEnum.getEntries(); // Then assertNotNull(entries, "The returned entries array should not be null."); assertEquals(2, entries.length, "The number of entries should be correct."); // The getEntries method returns FileEntry objects. We can check their names.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
void nullName() { FileEntry mock = mock(FileEntry.class); when(mock.getName()).thenReturn(null); assertNull(mock.getName()); } @Test @DisplayName("Negative length is allowed via mock") void negativeLength() { FileEntry mock = mock(FileEntry.class); when(mock.length()).thenReturn(-10L);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
infoField.set(msrpcShareEnum, shareInfoCtr1); // Test getEntries method FileEntry[] entries = msrpcShareEnum.getEntries(); assertNotNull(entries); assertEquals(2, entries.length); // Verify the first entry FileEntry entry1 = entries[0]; assertNotNull(entry1); assertEquals("Share1", entry1.getName());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
return new SmbFile("smb://test-server/share/"); } // Helper to create a minimal FileEntry mock private FileEntry entry(String name, int type) { FileEntry e = mock(FileEntry.class); when(e.getName()).thenReturn(name); when(e.getType()).thenReturn(type); return e; } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/FileEntryAdapterIterator.java
private final CloseableIterator<FileEntry> delegate; private final ResourceFilter filter; private final SmbResource parent; private SmbResource next; /** * @param parent * @param delegate * @param filter * */ public FileEntryAdapterIterator(final SmbResource parent, final CloseableIterator<FileEntry> delegate, final ResourceFilter filter) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponse.java
import jcifs.internal.fscc.FileBothDirectoryInfo; import jcifs.internal.smb2.ServerMessageBlock2Response; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; import jcifs.smb.FileEntry; /** * SMB2 Query Directory response message. This response contains directory listing * information with file entries and their attributes. * * @author mbechler * */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/NetServerEnumIterator.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java
* @throws CIFSException if an error occurs during enumeration */ protected final FileEntry advance(final boolean last) throws CIFSException { final FileEntry[] results = getResults(); while (this.ridx < results.length) { final FileEntry itm = results[this.ridx]; this.ridx++; if (filter(itm)) { return itm; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.7K bytes - Click Count (0)