Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hasChild (0.14 sec)

  1. docs/smb3-features/04-directory-leasing-design.md

        entry.updateChild("file1.txt", attrs);
        
        assertTrue(entry.hasChild("file1.txt"));
        assertEquals(1, entry.getChildren().size());
        
        // Test removal
        entry.removeChild("file1.txt");
        assertFalse(entry.hasChild("file1.txt"));
        assertEquals(0, entry.getChildren().size());
    }
    
    @Test
    public void testDirectoryLeaseManager() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

                        var parentCache = dirManager.getCacheEntry(parentPath);
                        if (parentCache != null && parentCache.isComplete()) {
                            boolean exists = parentCache.hasChild(smbFile.getName());
                            log.debug("Using cached existence check for: {}", smbFile.getPath());
                            return exists;
                        }
                    }
                }
    
    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/internal/smb2/lease/DirectoryCacheEntry.java

                lock.readLock().unlock();
            }
        }
    
        /**
         * Check if a child exists
         *
         * @param name child name
         * @return true if child exists
         */
        public boolean hasChild(String name) {
            lock.readLock().lock();
            try {
                lastAccessTime = System.currentTimeMillis();
                return children.containsKey(name);
            } finally {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top