- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 21 for NewFile (0.06 seconds)
-
src/test/java/jcifs/SmbWatchHandleTest.java
// 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); when(fileNotifyInfo2.getFileName()).thenReturn("existingfile.txt");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.2K bytes - Click Count (1) -
internal/logger/logrotate.go
Level: ErrorKind, Message: msg, Time: time.Now().UTC(), Trace: &log.Trace{Message: msg}, }) } } path := filepath.Join(w.opts.Directory, w.opts.FileNameFunc()) f, err := newFile(path) if err != nil { return fmt.Errorf("unable to create new file at %v: %w", path, err) } w.f = f return nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
assertEquals(20, info.size()); } @Test @DisplayName("Test encode with replaceIfExists true") void testEncodeWithReplaceIfExistsTrue() { String fileName = "newfile.txt"; FileRenameInformation2 info = new FileRenameInformation2(fileName, true); byte[] buffer = new byte[100]; int bytesWritten = info.encode(buffer, 0); // Verify replaceIfExists flag
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
void testGetPath() { request = new Smb2CreateRequest(mockConfig, "share\\file.txt"); assertEquals("\\share\\file.txt", request.getPath()); request.setPath("newpath\\newfile.txt"); assertEquals("\\newpath\\newfile.txt", request.getPath()); } @Test @DisplayName("Test setFullUNCPath and related getters") void testFullUNCPath() {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 18.6K bytes - Click Count (0) -
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 // Re-populate cache
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE); int newResumeKey = 0x5678; String newFilename = "newfile.txt"; trans2FindNext2.reset(newResumeKey, newFilename); // Verify by writing parameters and checking the buffer byte[] buffer = new byte[256];
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.2K bytes - Click Count (0) -
internal/lock/lock_windows.go
accessAttr := uint32(syscall.FILE_ATTRIBUTE_NORMAL | 0x80000000) fd, err := syscall.CreateFile(pathp, access, shareflag, nil, createflag, accessAttr, 0) if err != nil { return nil, err } return os.NewFile(uintptr(fd), path), nil } func lockFile(fd syscall.Handle, flags uint32) error { // https://msdn.microsoft.com/en-us/library/windows/desktop/aa365203(v=vs.85).aspx if fd == syscall.InvalidHandle { return nil
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.9K bytes - Click Count (0) -
docs/smb3-features/04-directory-leasing-design.md
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 36.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
log.info("Basic connectivity test passed - can connect, list, and read files"); } @Test void testCreateNewFile() throws Exception { SmbFile file = new SmbFile(baseUrl + "shared/newfile.txt", context); assertFalse(file.exists(), "File should not exist initially"); file.createNewFile(); assertTrue(file.exists(), "File should exist after creation");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
api/go1.3.txt
pkg debug/plan9obj, const MagicAMD64 = 35479 pkg debug/plan9obj, const MagicAMD64 ideal-int pkg debug/plan9obj, const MagicARM = 1607 pkg debug/plan9obj, const MagicARM ideal-int pkg debug/plan9obj, func NewFile(io.ReaderAt) (*File, error) pkg debug/plan9obj, func Open(string) (*File, error) pkg debug/plan9obj, method (*File) Close() error pkg debug/plan9obj, method (*File) Section(string) *Section
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Jun 02 02:45:00 GMT 2014 - 117K bytes - Click Count (0)