Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for canRead (0.46 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

                // Given
                when(mockResource.canRead()).thenReturn(true);
                when(mockResource.canWrite()).thenReturn(false);
    
                // When
                boolean canRead = mockResource.canRead();
                boolean canWrite = mockResource.canWrite();
    
                // Then
                assertTrue(canRead, "Should be readable");
                assertFalse(canWrite, "Should not be writable");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertTrue(initialFile.exists(), "Initial file should exist");
            assertTrue(initialFile.isFile(), "Initial file should be a file");
            assertTrue(initialFile.canRead(), "Should be able to read initial file");
    
            log.info("Basic connectivity test passed - can connect, list, and read files");
        }
    
        @Test
        void testCreateNewFile() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlTest.java

            final File tmpDir = Curl.tmpDir;
    
            // ## Assert ##
            assertNotNull(tmpDir);
            assertTrue(tmpDir.exists());
            assertTrue(tmpDir.isDirectory());
            assertTrue(tmpDir.canRead());
            assertTrue(tmpDir.canWrite());
            assertEquals(new File(System.getProperty("java.io.tmpdir")).getAbsolutePath(), tmpDir.getAbsolutePath());
        }
    
        @Test
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileTest.java

                // Arrange
                doReturn(false).when(smbFile).isDirectory();
                doReturn(true).when(smbFile).exists();
    
                // Act & Assert
                assertTrue(smbFile.canRead());
            }
    
            @Test
            void testCanWrite() throws SmbException {
                // Arrange
                doReturn(0).when(smbFile).getAttributes(); // No read-only attribute
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                            responseData.addMetaData(entry.getKey(), entry.getValue());
                        }
                    }
    
                    if (file.canRead()) {
                        final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper");
                        if (includeContent) {
                            if (logger.isDebugEnabled()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                            responseData.addMetaData(entry.getKey(), entry.getValue());
                        }
                    }
    
                    if (file.canRead()) {
                        final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper");
                        if (includeContent) {
                            if (logger.isDebugEnabled()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 23K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbResource.java

         *
         * @return <code>true</code> if the file is read-only
         * @throws CIFSException if an error occurs accessing the resource
         */
        boolean canRead() throws CIFSException;
    
        /**
         * Turn off the read-only attribute of this file. This is shorthand for
         * <code>setAttributes( getAttributes() &amp; ~ATTR_READONLY )</code>.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb1/smb1/SmbFile.java

         *
         * @return <code>true</code> if the file is read-only
         * @throws SmbException if an error occurs while checking read permissions
         */
    
        public boolean canRead() throws SmbException {
            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for reading?
                return true;
            }
            return exists(); // try opening and catch sharing violation?
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFile.java

                }
                return new SmbWatchHandleImpl(openUnshared(O_RDONLY, READ_CONTROL | GENERIC_READ, DEFAULT_SHARING, 0, 1), filter, recursive);
            }
        }
    
        @Override
        public boolean canRead() throws SmbException {
            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for reading?
                return true;
            }
            return exists(); // try opening and catch sharing violation?
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  10. docs/multi-user/README.md

    - Configure etcd - [Etcd V3 Quickstart Guide](https://github.com/minio/minio/blob/master/docs/sts/etcd.md)
    
    ### 2. Create a new user with canned policy
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top