Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for SmbFile (0.03 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * Changes the name of the file this <code>SmbFile</code> represents to the name
         * designated by the <code>SmbFile</code> argument.
         *
         * <i>Remember: <code>SmbFile</code>s are immutible and therefore
         * the path associated with this <code>SmbFile</code> object will not
         * change). To access the renamed file it is necessary to construct a
         * new {@code SmbFile}</i>.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFile.java

     * resources are files and directories however an <code>SmbFile</code>
     * may also refer to servers and workgroups. If the resource is a file or
     * directory the methods of <code>SmbFile</code> follow the behavior of
     * the well known {@link java.io.File} class. One fundamental difference
     * is the usage of a URL scheme [1] to specify the target file or
     * directory. SmbFile URLs have the following syntax:
     *
     * <blockquote>
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            SmbFile verifySource = new SmbFile(baseUrl + "shared/" + sourceFileName, verifyContext);
            assertTrue(verifySource.exists(), "Source file should exist");
    
            // Perform rename using copy+delete as this is more reliable with Docker/Samba
            CIFSContext renameContext = createFreshContext();
            SmbFile srcForCopy = new SmbFile(baseUrl + "shared/" + sourceFileName, renameContext);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/NetworkExplorerTest.java

            // Mock directory listing
            SmbFile file1 = mock(SmbFile.class);
            when(file1.getName()).thenReturn("document.pdf");
            when(file1.isDirectory()).thenReturn(false);
            when(file1.length()).thenReturn(2048L);
            when(file1.lastModified()).thenReturn(System.currentTimeMillis());
    
            SmbFile dir1 = mock(SmbFile.class);
            when(dir1.getName()).thenReturn("folder/");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

            int flags = SmbFile.O_CREAT | SmbFile.O_EXCL;
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, flags, andx);
            assertEquals(0x10, smbComOpenAndX.openFunction); // OPEN_FN_CREATE | OPEN_FN_FAIL_IF_EXISTS
        }
    
        /**
         * Test constructor with O_CREAT flag.
         */
        @Test
        void testConstructor_CreateAndOpen() {
            int flags = SmbFile.O_CREAT;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NetworkExplorer.java

            final PrintWriter out = resp.getWriter();
            SmbFile[] dirents;
            SmbFile f;
            int i, j, len, maxLen, dirCount, fileCount, sort;
            String str, name, path, fmt;
            LinkedList<SmbFile> sorted;
            ListIterator<SmbFile> iter;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            smbTree.tree_num = 1;
    
            // Mock the SmbFile
            smbFile = mock(SmbFile.class);
            smbFile.tree = smbTree;
            smbFile.fid = 1;
            smbFile.tree_num = 1;
    
            when(smbFile.isFile()).thenReturn(true);
            when(smbFile.getUncPath()).thenReturn("\\\\server\\share\\file.txt");
            when(smbFile.isOpen()).thenReturn(true);
    
            // Mock the open method to do nothing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/DosFileFilterTest.java

            new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE);
            new DosFileFilter("?", SmbFile.ATTR_DIRECTORY);
            new DosFileFilter("file.txt", SmbFile.ATTR_READONLY | SmbFile.ATTR_HIDDEN);
        }
    
        /**
         * Parameterized test for the {@link DosFileFilter#accept(SmbFile)} method.
         * This test covers various combinations of file attributes and filter attributes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. 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();
        
        // Wait for change notification
        Thread.sleep(2000);
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            @DisplayName("copyFile wraps and throws when ignoreCopyToException=false")
            void copyFile_throwsWhenIgnoreFalse() throws Exception {
                // Arrange
                SmbFile src = mock(SmbFile.class, RETURNS_DEEP_STUBS);
                SmbFile dest = mock(SmbFile.class);
                CIFSContext ctx = ctxWithIgnore(false);
                when(src.getContext()).thenReturn(ctx);
    
                // Force failure before any stream construction
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top