Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for getUncPath (0.18 sec)

  1. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/main/java/jcifs/smb/SmbCopyUtil.java

                                new Trans2SetFileInformationResponse(dh.getConfig()));
                    } else {
                        dh.send(new SmbComSetInformation(dh.getConfig(), dest.getUncPath(), attrs, mtime),
                                new SmbComSetInformationResponse(dh.getConfig()));
                    }
                }
            } catch (final IOException se) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  10. 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 vary
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top