- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 20 for getUNCPath (0.18 seconds)
-
src/test/java/jcifs/smb/SmbFileTest.java
} @Test void testGetUncPath() { // Arrange doReturn("\\localhost\share\file.txt").when(smbFile).getUncPath(); // Act & Assert assertEquals("\\localhost\share\file.txt", smbFile.getUncPath()); } } @Nested class WhenHandlingSpecialOperations { @Mock private SmbTreeHandleImpl mockTreeHandle;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
} } } final String hostName = loc.getServerWithDfs(); final String path = loc.getType() == SmbConstants.TYPE_SHARE || loc.getUNCPath() == null || "\\".equals(loc.getUNCPath()) ? null : loc.getUNCPath(); String share = loc.getShare(); final DfsReferralData start = referral != null ? referral : this.ctx.getDfs().resolve(this.ctx, hostName, loc.getShare(), path);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* represents is a communications device. */ public static final int TYPE_COMM = 0x40; private String canon; // Initially null; set by getUncPath; dir must end with '/' private String share; // Can be null private long createTime; private long lastModified; private int attributes; private long attrExpiration; private long size;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 112.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
void happyPath_enumerates_and_closes(String wildcard) throws Exception { // Setup required for this test when(parent.getLocator()).thenReturn(locator); when(locator.getUNCPath()).thenReturn("\\\\server\\share\\dir\\"); when(tree.getConfig()).thenReturn(config); when(config.getMaximumBufferSize()).thenReturn(65535); when(config.getListSize()).thenReturn(65535);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
lenient().when(config.getListCount()).thenReturn(10); lenient().when(config.getListSize()).thenReturn(4096); lenient().when(parent.getLocator()).thenReturn(locator); lenient().when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir\\"); // ends with \\ // Create URL with registered handler URL smbUrl = new URL("smb://server/share/dir/"); lenient().when(locator.getURL()).thenReturn(smbUrl);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
smbFile = mock(SmbFile.class); smbFile.tree = smbTree; smbFile.fid = 1; smbFile.tree_num = 1; when(smbFile.isFile()).thenReturn(true); when(smbFile.getUncPath()).thenReturn("\\\\server\\share\\file.txt"); when(smbFile.isOpen()).thenReturn(true); // Mock the open method to do nothing doNothing().when(smbFile).open(anyInt(), anyInt(), anyInt(), anyInt());
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/SmbPipeInputStream.java
return ((SrvPipePeekResponse) resp.getOutputData()).getReadDataAvailable(); } final TransPeekNamedPipe req = new TransPeekNamedPipe(th.getConfig(), this.handle.getUncPath(), fd.getFid()); final TransPeekNamedPipeResponse resp = new TransPeekNamedPipeResponse(th.getConfig()); th.send(req, resp, RequestParam.NO_RETRY);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java
} @SuppressWarnings("resource") @Override protected final FileEntry open() throws CIFSException { final SmbResourceLocator loc = this.getParent().getLocator(); final String unc = loc.getUNCPath(); final String p = loc.getURL().getPath(); if (p.lastIndexOf('/') != p.length() - 1) { throw new SmbException(loc.getURL() + " directory must end with '/'"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
lenient().when(tree.getConfig()).thenReturn(config); } private SmbPipeHandleImpl newHandleWithBasicStubs(int pipeType, String unc) { when(pipe.getPipeType()).thenReturn(pipeType); when(pipe.getUncPath()).thenReturn(unc); return new SmbPipeHandleImpl(pipe); } @Test @DisplayName("ensureTreeConnected acquires and reuses the tree handle")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 16.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
} @Test void testUNCPath() throws Exception { SmbFile file = new SmbFile(baseUrl + "shared/unc.txt", context); String uncPath = file.getUncPath(); assertNotNull(uncPath, "UNC path should not be null"); log.info("UNC path: {}", uncPath); // Be more flexible about UNC path format - different implementations may varyCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0)