- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getUncPath (0.07 sec)
-
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
assertEquals("\\\\server\\share\\file.txt", new SmbFile("smb1://server/share/file.txt").getUncPath()); // For share URLs with trailing slash, the UNC path includes the trailing slash assertEquals("\\\\server\\share\\", new SmbFile("smb1://server/share/").getUncPath()); assertEquals("\\\\server", new SmbFile("smb1://server/").getUncPath()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (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());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java
*/ @SuppressWarnings("resource") @Override protected FileEntry open() throws CIFSException { final SmbTreeHandleImpl th = getTreeHandle(); final String uncPath = getParent().getLocator().getUNCPath(); final Smb2CreateRequest create = new Smb2CreateRequest(th.getConfig(), uncPath); create.setCreateOptions(Smb2CreateRequest.FILE_DIRECTORY_FILE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (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 '/'"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceLocatorTest.java
return dfsReferral; } public void setDfsReferral(DfsReferralData dfsReferral) { this.dfsReferral = dfsReferral; } @Override public String getUNCPath() { return null; } @Override public String getURLPath() { return null; } @Override public String getShare() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/SmbResourceLocator.java
/** * Returns the canonicalized UNC path of this SMB resource relative to its share. * * @return The canonicalized UNC path of this SMB resource (relative to it's share) */ String getUNCPath(); /** * Returns the canonicalized URL path relative to the server or domain. * * @return The canonicalized URL path (relative to the server/domain) */ String getURLPath();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0)