Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for getParents (0.15 sec)

  1. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

        void testGetParent() {
            SmbResourceLocatorImpl a = locator("smb://server/share/dir/file.txt");
            assertEquals("smb://server/share/dir/", a.getParent());
    
            SmbResourceLocatorImpl b = locator("smb://server/share/");
            assertEquals("smb://server/", b.getParent());
        }
    
        @Test
        @DisplayName("Canonical and UNC paths are computed and stable")
        void testCanonicalAndUNCPaths() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

                if (dirManager != null && smbFile.getContext().getConfig().isUseDirectoryLeasing()) {
                    // Check parent directory cache first
                    String parentPath = smbFile.getParent();
                    if (parentPath != null) {
                        var parentCache = dirManager.getCacheEntry(parentPath);
                        if (parentCache != null && parentCache.isComplete()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

            return this.wildcard;
        }
    
        /**
         * Gets the parent resource being enumerated.
         *
         * @return the parent
         */
        public final SmbResource getParent() {
            return this.parent;
        }
    
        private final boolean filter(final FileEntry fe) {
            final String name = fe.getName();
            if (name.length() < 3) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                return this.url.getHost() + '/';
            }
            return "smb://";
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getParent()
         */
        @Override
        public String getParent() {
            String str = this.url.getAuthority();
    
            if (str != null && !str.isEmpty()) {
                final StringBuilder sb = new StringBuilder("smb://");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  5. docs/smb3-features/04-directory-leasing-design.md

        return files;
    }
    
    @Override
    public boolean exists() throws IOException {
        if (isDirectory() && directoryLeaseManager != null) {
            // Check parent directory cache first
            String parentPath = getParent();
            DirectoryCacheEntry parentCache = directoryLeaseManager.getCacheEntry(parentPath);
            
            if (parentCache != null && parentCache.isComplete()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbResourceLocator.java

         *         <code>smb://</code> if the resource refers to the root of the URL
         *         hierarchy which incidentally is also <code>smb://</code>.
         */
        String getParent();
    
        /**
         * Returns the full uncanonicalized URL of this SMB resource. An
         * <code>SmbFile</code> constructed with the result of this method will
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            assertEquals(attrs, it.getSearchAttributes());
            assertEquals(wildcard, it.getWildcard());
            assertSame(parent, it.getParent());
            verify(tree, times(1)).acquire();
        }
    
        @Test
        @DisplayName("Constructor with open() returning null closes immediately and hasNext=false")
        void constructorOpenNullCloses() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileTest.java

            }
        }
    
        @Nested
        class WhenHandlingPaths {
    
            @Test
            void testGetParent() {
                // Act & Assert
                assertEquals("smb://localhost/share/", smbFile.getParent());
            }
    
            @Test
            void testGetCanonicalPath() {
                // Act & Assert
                assertEquals("smb://localhost/share/file.txt", smbFile.getCanonicalPath());
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .containsExactlyElementsIn(locations);
      }
    
      public void testLocationEquals() {
        ClassLoader child = getClass().getClassLoader();
        ClassLoader parent = child.getParent();
        new EqualsTester()
            .addEqualityGroup(
                new ClassPath.LocationInfo(new File("foo.jar"), child),
                new ClassPath.LocationInfo(new File("foo.jar"), child))
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 23K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFile.java

         *         <code>smb://</code> if the resource refers to the root of the URL
         *         hierarchy which incidentally is also <code>smb://</code>.
         */
        public String getParent() {
            return this.fileLocator.getParent();
        }
    
        /**
         * Returns the full uncanonicalized URL of this SMB resource. An
         * <code>SmbFile</code> constructed with the result of this method will
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top