Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for uncu (0.01 sec)

  1. 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;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. internal/lock/lock_windows.go

    	// paths or paths containing .. elements. For now,
    	// \\server\share paths are not converted to
    	// \\?\UNC\server\share paths because the rules for doing so
    	// are less well-specified.
    	if len(path) >= 2 && path[:2] == `\\` {
    		// Don't canonicalize UNC paths.
    		return path
    	}
    	if !filepath.IsAbs(path) {
    		// Relative path
    		return path
    	}
    
    	const prefix = `\\?`
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. 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},
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. 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.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. 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());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. 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.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. 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")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. 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"),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  10. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top