- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 94 for SmbFile (0.23 sec)
-
src/test/java/jcifs/smb/SmbFileTest.java
doReturn(mockFileHandle).when(smbFile).openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt()); doNothing().when(mockFileHandle).close(0L); // Act smbFile.createNewFile(); // Assert verify(smbFile).openUnshared(SmbFile.O_RDWR | SmbFile.O_CREAT | SmbFile.O_EXCL, SmbFile.O_RDWR, SmbFile.FILE_NO_SHARE, SmbFile.ATTR_NORMAL, 0);
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/SmbFileDirectoryLeasingExtension.java
* * @param smbFile the SmbFile directory to list * @return array of SmbFile objects representing the directory contents * @throws SmbException if an error occurs */ public static SmbFile[] listFilesWithLeasing(SmbFile smbFile) throws SmbException { if (!smbFile.isDirectory()) { throw new SmbException("Not a directory: " + smbFile.getPath()); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
this(file, append, append ? SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_APPEND : SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_TRUNC); } /** * Creates an {@link java.io.OutputStream} for writing bytes to a file * on an SMB server addressed by the <code>SmbFile</code> parameter. See * {@link jcifs.smb1.smb1.SmbFile} for a detailed description and examples of * the smb URL syntax.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
this(new SmbFile(url, tc), mode, sharing, true); } /** * Instantiate a random access file from a {@link SmbFile} * * @param file the SmbFile to access * @param mode the access mode ("r" for read-only, "rw" for read-write) * @throws SmbException if an SMB error occurs */ public SmbRandomAccessFile(final SmbFile file, final String mode) throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
@BeforeEach public void setup() { filter = new DosFileFilter("*", SmbFile.ATTR_NORMAL); } @Test public void testAcceptReturnsTrueWhenAttributesMatch() throws Exception { SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL); assertTrue(filter.accept(file), "Attributes match should be accepted");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
this(new SmbFile(url)); } /** * Creates an {@link java.io.InputStream} for reading bytes from a file on * an SMB server represented by the {@link jcifs.smb1.smb1.SmbFile} parameter. See * {@link jcifs.smb1.smb1.SmbFile} for a detailed description and examples of * the smb URL syntax. * * @param file An <code>SmbFile</code> specifying the file to read from
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java
void acceptReturnsTrueWhenNameMatches() throws Exception { 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);
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
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
SmbFile smbFile = mock(SmbFile.class); when(delegate.accept(smbFile)).thenReturn(true); // Act boolean result = (boolean) invokePrivate(wrapper, "accept", new Class<?>[] { SmbResource.class }, smbFile); // Assert assertTrue(result); verify(delegate, times(1)).accept(smbFile); } @TestRegistered: 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/internal/smb2/lease/DirectoryLeaseManager.java
} try { // Create SmbFile with cached attributes SmbFile file = new SmbFile(filePath, context); // Note: We would need to add a method to SmbFile to set cached attributes // For now, just return the file object return file; } catch (Exception e) { log.warn("Failed to create SmbFile for {}: {}", filePath, e.getMessage());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0)