Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for TYPE_FILESYSTEM (0.08 seconds)

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

                when(mockTree.getReceiveBufferSize()).thenReturn(0x200000);
                when(mockTree.getMaximumBufferSize()).thenReturn(0x200000);
    
                // Make TYPE_FILESYSTEM path, not named pipe
                when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM);
    
                // Capture the ReadAndX request; throw to short-circuit network
                doAnswer(inv -> {
                    throw new SmbException("short-circuit");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

                // Without a real connection, getType relies on path parsing.
                // getUncPath0() will result in a path > 1, so it should be TYPE_FILESYSTEM
                assertEquals(SmbFile.TYPE_FILESYSTEM, file.getType());
            }
    
            @Test
            public void testGetTypeForShare() throws Exception {
                SmbFile share = new SmbFile("smb1://server/share/");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  3. src/main/java/jcifs/SmbResourceLocator.java

         *
         * @return whether this is a IPC connection
         */
        boolean isIPC();
    
        /**
         * Returns type of of object this <code>SmbFile</code> represents.
         *
         * @return <code>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER,
         * TYPE_NAMED_PIPE</code>, or <code>TYPE_SHARE</code> in which case it may be either <code>TYPE_SHARE</code>,
         *         <code>TYPE_PRINTER</code> or <code>TYPE_COMM</code>.
    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/internal/fscc/FileBothDirectoryInfoTest.java

            // Verify
            assertEquals("testfile.txt", fileBothDirectoryInfo.getName());
        }
    
        @Test
        @DisplayName("Test getType returns TYPE_FILESYSTEM")
        void testGetType() {
            assertEquals(SmbConstants.TYPE_FILESYSTEM, fileBothDirectoryInfo.getType());
        }
    
        @Test
        @DisplayName("Test getFileIndex returns correct value")
        void testGetFileIndex() throws SMBProtocolDecodingException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * @return {@code TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER, TYPE_SHARE,
         * TYPE_PRINTER, TYPE_NAMED_PIPE}, or {@code TYPE_COMM}.
         * @throws SmbException if an error occurs while determining the type
         */
        public int getType() throws SmbException {
            if (type == 0) {
                if (getUncPath0().length() > 1) {
                    type = TYPE_FILESYSTEM;
                } else if (share != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/SmbConstants.java

        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a regular file or directory.
         */
        int TYPE_FILESYSTEM = 0x01;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a workgroup.
         */
        int TYPE_WORKGROUP = 0x02;
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("getType should return valid SMB resource type")
            void testGetType() throws CIFSException {
                // Given
                int expectedType = 1; // Assuming TYPE_FILESYSTEM
                when(mockResource.getType()).thenReturn(expectedType);
    
                // When
                int type = mockResource.getType();
    
                // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  8. src/main/java/jcifs/SmbResource.java

         *         itself.
         */
        String getName();
    
        /**
         * Returns type of of object this <code>SmbResource</code> represents.
         *
         * @return <code>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER, TYPE_SHARE,
         * TYPE_PRINTER, TYPE_NAMED_PIPE</code>, or <code>TYPE_COMM</code>.
         * @throws CIFSException if an error occurs accessing the resource
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  9. src/main/java/jcifs/smb/DirFileEntryAdapterIterator.java

         * @throws MalformedURLException
         */
        @Override
        protected SmbResource adapt(final FileEntry e) throws MalformedURLException {
            return new SmbFile(getParent(), e.getName(), true, SmbConstants.TYPE_FILESYSTEM, e.getAttributes(), e.createTime(),
                    e.lastModified(), e.lastAccess(), e.length());
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  10. src/test/java/jcifs/SmbConstantsTest.java

                    SmbConstants.DEFAULT_SHARING);
        }
    
        @Test
        @DisplayName("Should define SMB resource type constants")
        void testResourceTypeConstants() {
            assertEquals(0x01, SmbConstants.TYPE_FILESYSTEM);
            assertEquals(0x02, SmbConstants.TYPE_WORKGROUP);
            assertEquals(0x04, SmbConstants.TYPE_SERVER);
            assertEquals(0x08, SmbConstants.TYPE_SHARE);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top