- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for FILE_ACTION_ADDED (0.06 sec)
-
src/test/java/jcifs/internal/NotifyResponseTest.java
} @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Setup mock notify information when(mockNotifyInfo1.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED); when(mockNotifyInfo1.getFileName()).thenReturn("test1.txt"); when(mockNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
byte[] buffer = createValidNotificationBuffer("testfile.txt", FileNotifyInformation.FILE_ACTION_ADDED); FileNotifyInformationImpl info = new FileNotifyInformationImpl(buffer, 0, buffer.length); assertNotNull(info); assertEquals(FileNotifyInformation.FILE_ACTION_ADDED, info.getAction()); assertEquals("testfile.txt", info.getFileName()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
@Nested @DisplayName("Action Constants Tests") class ActionConstantsTests { @Test @DisplayName("Verify FILE_ACTION_ADDED constant value") void testFileActionAdded() { assertEquals(0x00000001, FileNotifyInformation.FILE_ACTION_ADDED); } @Test @DisplayName("Verify FILE_ACTION_REMOVED constant value") void testFileActionRemoved() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
void testReadParametersWireFormatSingleNotification() throws Exception { byte[] buffer = createSingleNotificationBuffer("test.txt", FileNotifyInformation.FILE_ACTION_ADDED); int result = response.readParametersWireFormat(buffer, 0, buffer.length); assertTrue(result > 0); List<FileNotifyInformation> notifications = response.getNotifyInformation();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
*/ @Test void testFileNotifyInformationUsage() { // Setup mock behavior for FileNotifyInformation when(fileNotifyInfo1.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED); when(fileNotifyInfo1.getFileName()).thenReturn("newfile.txt"); when(fileNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
offset += nextEntryOffset; } } private DirectoryChangeType convertAction(int action) { switch (action) { case FILE_ACTION_ADDED: return DirectoryChangeType.FILE_ADDED; case FILE_ACTION_REMOVED: return DirectoryChangeType.FILE_REMOVED; case FILE_ACTION_MODIFIED: return DirectoryChangeType.FILE_MODIFIED;
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/internal/smb2/lease/DirectoryChangeNotifier.java
/** * File or directory attributes were changed */ ATTRIBUTES_CHANGED } /** * SMB2 File Action constants */ private static final int FILE_ACTION_ADDED = 0x00000001; private static final int FILE_ACTION_REMOVED = 0x00000002; private static final int FILE_ACTION_MODIFIED = 0x00000003; private static final int FILE_ACTION_RENAMED_OLD_NAME = 0x00000004;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.7K bytes - Viewed (0) -
src/main/java/jcifs/FileNotifyInformation.java
*/ int FILE_NOTIFY_CHANGE_STREAM_WRITE = 0x00000800; // actions returned /** * File has been added */ int FILE_ACTION_ADDED = 0x00000001; /** * File has been removed */ int FILE_ACTION_REMOVED = 0x00000002; /** * File has been modified */ int FILE_ACTION_MODIFIED = 0x00000003;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
int notifyOffset = 80; SMBUtil.writeInt4(0, buffer, notifyOffset); // NextEntryOffset (0 = last entry) SMBUtil.writeInt4(1, buffer, notifyOffset + 4); // Action (FILE_ACTION_ADDED) // Write filename in Unicode String fileName = "test.txt"; byte[] fileNameBytes = fileName.getBytes("UnicodeLittleUnmarked");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0)