Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for handleDirectoryChange (0.07 sec)

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

            // Test FILE_REMOVED
            directoryLeaseManager.handleDirectoryChange(directoryPath, "file1.txt", DirectoryChangeNotifier.DirectoryChangeType.FILE_REMOVED);
            assertFalse(entry.hasChild("file1.txt"));
    
            // Test FILE_MODIFIED
            entry.updateChild("file2.txt", 2048L, 2000L, false, 0x20, 600L, 900L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            assertEquals(2, verifyCacheEntry.getChildren().size());
    
            // Step 8: Test change notifications
            // Simulate file addition
            directoryLeaseManager.handleDirectoryChange(directoryPath, "newfile.txt", DirectoryChangeNotifier.DirectoryChangeType.FILE_ADDED);
    
            // Cache should be invalidated
            assertFalse(cacheEntry.isComplete());
    
            // Step 9: Test lease break
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. docs/smb3-features/04-directory-leasing-design.md

                SmbFileAttributes attrs = file.getAttributes();
                entry.updateChild(file.getName(), attrs);
            }
            
            entry.markComplete();
        }
        
        public void handleDirectoryChange(String directoryPath, String childName, 
                                        DirectoryChangeType changeType) {
            DirectoryCacheEntry entry = directoryCache.get(directoryPath);
            if (entry == null) return;
    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/internal/smb2/lease/DirectoryChangeNotifier.java

                // Reset failure count on successful notification
                resetFailureCount(handle);
    
                // Notify lease manager
                leaseManager.handleDirectoryChange(handle.getDirectoryPath(), fileName, changeType);
    
                if (nextEntryOffset == 0) {
                    break;
                }
                offset += nextEntryOffset;
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

         * Handle directory change notification
         *
         * @param directoryPath directory path
         * @param childName child file name
         * @param changeType type of change
         */
        public void handleDirectoryChange(String directoryPath, String childName, DirectoryChangeNotifier.DirectoryChangeType changeType) {
            DirectoryCacheEntry entry = directoryCache.get(directoryPath);
            if (entry == null)
                return;
    
    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