- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getCachedDirectoryListing (0.35 sec)
-
docs/smb3-features/04-directory-leasing-design.md
LeaseEntry leaseEntry = baseLeaseManager.getLease(entry.getLeaseKey()); return leaseEntry != null && leaseEntry.hasReadCache(); } public List<SmbFile> getCachedDirectoryListing(String directoryPath) { DirectoryCacheEntry entry = getCacheEntry(directoryPath); if (entry == null || !entry.isComplete()) { return null; // No cached listing available }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java
// Check if we can use cached directory listing if (dirManager.canCacheDirectoryListing(directoryPath)) { List<SmbFile> cachedFiles = dirManager.getCachedDirectoryListing(directoryPath); if (cachedFiles != null) { log.debug("Using cached directory listing for: {}", directoryPath); return cachedFiles.toArray(new SmbFile[0]); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
DirectoryCacheScope.IMMEDIATE_CHILDREN); // No cached listing initially assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath)); // Setup mock files when(mockFile1.getName()).thenReturn("file1.txt"); when(mockFile1.length()).thenReturn(1024L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
assertTrue(directoryLeaseManager.canCacheDirectoryListing(directoryPath)); // Step 4: Initially no cached listing assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath)); // Step 5: Simulate directory enumeration and update cache List<SmbFile> files = Arrays.asList(mockFile1, mockFile2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
} /** * Get cached directory listing * * @param directoryPath directory path * @return list of cached files or null */ public List<SmbFile> getCachedDirectoryListing(String directoryPath) { DirectoryCacheEntry entry = getCacheEntry(directoryPath); if (entry == null || !entry.isComplete()) { return null; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0)