Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for NewFile (1.02 sec)

  1. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. 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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. 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];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. docs/smb3-features/04-directory-leasing-design.md

        
        SmbFile dir = new SmbFile("smb://server/share/testdir/", context);
        SmbFile testFile = new SmbFile("smb://server/share/testdir/newfile.txt", context);
        
        // Get initial listing (establishes cache)
        SmbFile[] initialFiles = dir.listFiles();
        
        // Create new file
        testFile.createNewFile();
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. 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");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  7. 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
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg debug/elf, const STV_INTERNAL SymVis
    pkg debug/elf, const STV_PROTECTED SymVis
    pkg debug/elf, const Sym32Size ideal-int
    pkg debug/elf, const Sym64Size ideal-int
    pkg debug/elf, func NewFile(io.ReaderAt) (*File, error)
    pkg debug/elf, func Open(string) (*File, error)
    pkg debug/elf, func R_INFO(uint32, uint32) uint64
    pkg debug/elf, func R_INFO32(uint32, uint32) uint32
    pkg debug/elf, func R_SYM32(uint32) uint32
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top