Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for updateDirectoryCache (0.09 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            // Update first directory cache
            List<SmbFile> files1 = Arrays.asList(mockFile1);
            directoryLeaseManager.updateDirectoryCache(dir1, files1);
    
            // Update second directory cache
            List<SmbFile> files2 = Arrays.asList(mockFile2);
            directoryLeaseManager.updateDirectoryCache(dir2, files2);
    
            // Verify both caches are independent
            assertTrue(entry1.isComplete());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            when(mockFile2.lastAccess()).thenReturn(900L);
    
            // Update cache
            List<SmbFile> files = Arrays.asList(mockFile1, mockFile2);
            directoryLeaseManager.updateDirectoryCache(directoryPath, files);
    
            // Verify cache entry was updated (test the cache content directly)
            DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  3. docs/smb3-features/04-directory-leasing-design.md

                SmbFile file = createSmbFileFromCache(directoryPath, fileInfo);
                files.add(file);
            }
            
            return files;
        }
        
        public void updateDirectoryCache(String directoryPath, List<SmbFile> files) {
            DirectoryCacheEntry entry = getCacheEntry(directoryPath);
            if (entry == null) return;
            
            // Update cache with new directory listing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

            // Perform actual directory enumeration
            SmbFile[] files = smbFile.listFiles();
    
            // Update cache if we have a directory lease
            if (leaseKey != null) {
                dirManager.updateDirectoryCache(directoryPath, Arrays.asList(files));
            }
    
            return files;
        }
    
        /**
         * Get directory lease manager from tree handle
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

        }
    
        /**
         * Update directory cache with new listing
         *
         * @param directoryPath directory path
         * @param files list of files in directory
         */
        public void updateDirectoryCache(String directoryPath, List<SmbFile> files) {
            DirectoryCacheEntry entry = getCacheEntry(directoryPath);
            if (entry == null)
                return;
    
            // Update cache with new directory listing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top