Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 92 for SmbFile (0.04 seconds)

  1. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                SmbFile smbFile = mock(SmbFile.class);
                when(delegate.accept(smbFile)).thenReturn(true);
    
                // Act
                boolean result = (boolean) invokePrivate(wrapper, "accept", new Class<?>[] { SmbResource.class }, smbFile);
    
                // Assert
                assertTrue(result);
                verify(delegate, times(1)).accept(smbFile);
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

        @BeforeEach
        public void setup() {
            filter = new DosFileFilter("*", SmbFile.ATTR_NORMAL);
        }
    
        @Test
        public void testAcceptReturnsTrueWhenAttributesMatch() throws Exception {
            SmbFile file = mock(SmbFile.class);
            when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL);
            assertTrue(filter.accept(file), "Attributes match should be accepted");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/SmbResourceLocator.java

         * <code>SmbFile</code> references a workgroup, the name of the workgroup
         * is returned. If this <code>SmbFile</code> refers to the root of this
         * SMB network hierarchy, <code>null</code> is returned.
         *
         * @return The server or workgroup name or <code>null</code> if this
         *         <code>SmbFile</code> refers to the root <code>smb://</code> resource.
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/HandlerTest.java

            // Assert
            assertNotNull(conn);
            assertTrue(conn instanceof SmbFile, "Connection should be an instance of SmbFile");
            SmbFile file = (SmbFile) conn;
            assertEquals(url, file.getURL(), "Returned SmbFile should wrap the given URL");
            assertSame(mockCtx, file.getContext(), "SmbFile must use the provided CIFSContext");
            verify(mockCtx, atLeastOnce()).getConfig(); // interaction with dependency
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            this(new SmbFile(url, tc), mode, sharing, true);
        }
    
        /**
         * Instantiate a random access file from a {@link SmbFile}
         *
         * @param file the SmbFile to access
         * @param mode the access mode ("r" for read-only, "rw" for read-write)
         * @throws SmbException if an SMB error occurs
         */
        public SmbRandomAccessFile(final SmbFile file, final String mode) throws SmbException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/http/NetworkExplorer.java

                    return;
                }
            }
    
            try {
                SmbFile file;
    
                if (ntlm != null) {
                    file = new SmbFile("smb1:/" + pathInfo, ntlm);
                } else if (server == null) {
                    file = new SmbFile("smb1://");
                } else {
                    file = new SmbFile("smb1:/" + pathInfo);
                }
    
                if (file.isDirectory()) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  7. docs/smb3-features/02-persistent-handles-design.md

            this.handleManager = manager;
            this.maxRetries = 3;
            this.retryDelay = 1000;  // 1 second
        }
        
        public CompletableFuture<SmbFile> reconnectHandle(SmbFile file, Exception cause) {
            String path = file.getPath();
            HandleInfo info = handleManager.getHandleForReconnect(path);
            
            if (info == null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.smb.SmbFile;
    
    /**
     * Integration tests for directory leasing functionality
     */
    public class DirectoryLeasingIntegrationTest {
    
        @Mock
        private CIFSContext context;
    
        @Mock
        private Configuration config;
    
        @Mock
        private SmbFile mockFile1;
    
        @Mock
        private SmbFile mockFile2;
    
        private LeaseManager baseLeaseManager;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

            this(new SmbFile(url));
        }
    
        /**
         * Creates an {@link java.io.InputStream} for reading bytes from a file on
         * an SMB server represented by the {@link jcifs.smb1.smb1.SmbFile} parameter. See
         * {@link jcifs.smb1.smb1.SmbFile} for a detailed description and examples of
         * the smb URL syntax.
         *
         * @param file An <code>SmbFile</code> specifying the file to read from
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbCopyUtil.java

                    try (SmbResource r = it.next()) {
                        try (SmbFile ndest = new SmbFile(dest, r.getLocator().getName(), true, r.getLocator().getType(), r.getAttributes(),
                                r.createTime(), r.lastModified(), r.lastAccess(), r.length())) {
    
                            if (r instanceof SmbFile) {
                                ((SmbFile) r).copyRecursive(ndest, b, bsize, w, sh, dh);
                            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 16.6K bytes
    - Click Count (0)
Back to Top