- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 374 for rmtree (0.06 seconds)
-
scripts/docs.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 17:46:10 GMT 2026 - 25.4K bytes - Click Count (0) -
src/main/java/jcifs/SmbTree.java
package jcifs; /** * Opaque reference to a SMB tree * * @author mbechler * */ public interface SmbTree extends AutoCloseable { /** * Unwraps the tree instance to the specified type * @param <T> the target tree type * @param type the class of the tree type to unwrap to * @return tree instance with the given type */ <T extends SmbTree> T unwrap(Class<T> type); /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbTree.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
} @Test void testEquals() { SmbTree tree1 = new SmbTree(session, "testShare", "testService"); SmbTree tree2 = new SmbTree(session, "testShare", "testService"); SmbTree tree3 = new SmbTree(session, "otherShare", "testService"); SmbTree tree4 = new SmbTree(session, "testShare", "otherService"); // Test equal trees (same share and service)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.2K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeTest.java
verify(smbTree).unwrap(CustomSmbTree.class); } /** * Test for unwrap() method with the same type. * Verifies that unwrap can return itself when the type matches. */ @Test void testUnwrap_withSameType() { when(smbTree.unwrap(SmbTree.class)).thenReturn(smbTree); SmbTree result = smbTree.unwrap(SmbTree.class); assertNotNull(result, "Unwrapped tree should not be null");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
when(tree.unwrap(SmbTreeInternal.class)).thenReturn(tree); // Act SmbTree unwrapped = tree.unwrap(SmbTreeInternal.class); tree.close(); // Assert assertNotNull(unwrapped); verify(tree).unwrap(SmbTreeInternal.class); verify(tree).close(); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeInternal.java
*/ package jcifs.smb; import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.SmbTree; import jcifs.internal.CommonServerMessageBlockResponse; import jcifs.internal.Request; /** * Internal SMB tree connection interface providing extended tree management capabilities. * Defines methods for internal tree operations and resource management. * * @author mbechler *
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/smb/SmbSessionInternalTest.java
} // Happy path: getSmbTree returns a tree and receives correct args @Test @DisplayName("getSmbTree returns tree and captures arguments") void getSmbTree_happy() { when(session.getSmbTree(anyString(), anyString())).thenReturn(tree); String share = "share"; String svc = "A:"; // service string example (e.g., DISK, IPC, or other) SmbTree result = session.getSmbTree(share, svc);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
smbSession = mock(SmbSession.class); smbSession.transport = smbTransport; // Mock the tree layer smbTree = mock(SmbTree.class); smbTree.session = smbSession; smbTree.tree_num = 1; // Mock the SmbFile smbFile = mock(SmbFile.class); smbFile.tree = smbTree; smbFile.fid = 1; smbFile.tree_num = 1; when(smbFile.isFile()).thenReturn(true);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionInternal.java
*/ void treeConnectLogon() throws SmbException; /** * Gets or creates an SMB tree connection for the specified share and service. * * @param share the share name to connect to * @param service the service type for the connection * @return tree instance */ SmbTree getSmbTree(String share, String service); /** * Initiate reauthentication *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.3K bytes - Click Count (0)