Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 41 for uncu (0.02 seconds)

  1. src/main/java/jcifs/smb/SmbResourceLocatorInternal.java

        /**
         * Internal: for testing only
         *
         * @param dr the DFS referral data to process
         * @param reqPath the requested path to resolve
         * @return resolved unc path
         */
        String handleDFSReferral(DfsReferralData dr, String reqPath);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java

            super(pipe, false, pipe.pipeType & 0xFFFF00FF | SmbFile.O_EXCL);
            this.pipe = pipe;
            this.dcePipe = (pipe.pipeType & SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT) == SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT;
            path = pipe.unc;
        }
    
        @Override
        public void close() throws IOException {
            pipe.close();
        }
    
        @Override
        public void write(final int b) throws IOException {
            tmp[0] = (byte) b;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. src/main/java/jcifs/SmbResourceLocator.java

         * the original.
         *
         * @return The canonicalized URL of this SMB resource.
         */
        String getCanonicalURL();
    
        /**
         * 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.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

            }
    
            @Test
            public void testGetUncPath() throws MalformedURLException {
                // Test UNC path conversion
                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());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  5. cmd/xl-storage_windows_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"testing"
    )
    
    // Test if various paths work as expected when converted to UNC form
    func TestUNCPaths(t *testing.T) {
    	testCases := []struct {
    		objName string
    		pass    bool
    	}{
    		{"/abcdef", true},
    		{"/a/b/c/d/e/f/g", true},
    		{string(bytes.Repeat([]byte("界"), 85)), true},
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Nov 29 06:35:16 GMT 2023
    - 2.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

        void setUp() {
            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: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/DfsReferral.java

        public long ttl;
        /** Target server for this referral */
        public String server; // Server
        /** Target share for this referral */
        public String share; // Share
        /** The complete UNC path link */
        public String link;
        /** Path relative to tree from which this referral was thrown */
        public String path; // Path relative to tree from which this referral was thrown
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/DfsImplTest.java

            assertDoesNotThrow(() -> dfsImpl.cache(mockContext, "\\\\server\\share\\path", mockReferral));
        }
    
        @Test
        void testCache_InvalidPath() {
            // Scenario: The UNC path provided is invalid.
            DfsReferralDataInternal mockReferral = mock(DfsReferralDataInternal.class);
            // Should not throw any exception.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

        private final String path;
    
        /**
         * Creates a new SMB2 tree connect request to establish a connection to a network share.
         *
         * @param config the CIFS configuration
         * @param path the UNC path to the share to connect to
         */
        public Smb2TreeConnectRequest(final Configuration config, final String path) {
            super(config, SMB2_TREE_CONNECT);
            this.path = path;
        }
    
        @Override
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            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
            assertTrue(uncPath.contains("shared") || uncPath.contains("unc.txt"),
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
Back to Top