Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for TYPE_SHARE (0.06 seconds)

  1. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

            assertNull(entries[0].getName());
            assertEquals(8, entries[0].getType()); // TYPE_SHARE constant value
    
            assertInstanceOf(SmbShareInfo.class, entries[1]);
            assertEquals("valid_share", entries[1].getName());
            assertEquals(8, entries[1].getType()); // TYPE_SHARE constant value
        }
    
        @Test
        @DisplayName("DCE/RPC flags should be set correctly")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            // Test for TYPE_SHARE (disk share)
            SmbShareInfo diskShare = new SmbShareInfo("DISK", 0, "A disk share");
            assertEquals(SmbFile.TYPE_SHARE, diskShare.getType());
    
            // Test for another type that should default to TYPE_SHARE
            SmbShareInfo otherShare = new SmbShareInfo("OTHER", 2, "Another type");
            assertEquals(SmbFile.TYPE_SHARE, otherShare.getType());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            // Verify the first entry
            FileEntry entry1 = entries[0];
            assertNotNull(entry1);
            assertEquals("Share1", entry1.getName());
            assertEquals(8, entry1.getType()); // TYPE_SHARE constant
    
            // Access remark through SmbShareInfo methods if available
            assertTrue(entry1 instanceof SmbShareInfo);
            SmbShareInfo shareInfo = (SmbShareInfo) entry1;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/SmbTreeHandleTest.java

         */
        @Test
        void testGetTreeType() {
            when(smbTreeHandle.getTreeType()).thenReturn(SmbConstants.TYPE_SHARE);
            assertEquals(SmbConstants.TYPE_SHARE, smbTreeHandle.getTreeType(), "Tree type should be TYPE_SHARE");
            when(smbTreeHandle.getTreeType()).thenReturn(SmbConstants.TYPE_PRINTER);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/SmbResourceLocator.java

        /**
         * 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>.
         * @throws CIFSException if the type cannot be determined
         */
        int getType() throws CIFSException;
    
    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)
  6. src/main/java/jcifs/smb1/smb1/SmbFile.java

        }
    
        /**
         * Returns the length of this {@code SmbFile} in bytes. If this object
         * is a {@code TYPE_SHARE} the total capacity of the disk shared in
         * bytes is returned. If this object is a directory or a type other than
         * {@code TYPE_SHARE}, 0L is returned.
         *
         * @return The length of the file in bytes or 0 if this
         * <code>SmbFile</code> is not a file.
    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)
  7. src/main/java/jcifs/SmbResource.java

        /**
         * Returns the length of this <code>SmbResource</code> in bytes. If this object
         * is a <code>TYPE_SHARE</code> the total capacity of the disk shared in
         * bytes is returned. If this object is a directory or a type other than
         * <code>TYPE_SHARE</code>, 0L is returned.
         *
         * @return The length of the file in bytes or 0 if this
         *         <code>SmbResource</code> is not a file.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  8. src/main/java/jcifs/SmbConstants.java

         */
        int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a share.
         */
        int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a named pipe.
         */
        int TYPE_NAMED_PIPE = 0x10;
        /**
    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)
  9. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

            SmbFile parent = newParent();
            List<FileEntry> entries = Arrays.asList(entry("keep1", SmbConstants.TYPE_SHARE), entry("skip1", SmbConstants.TYPE_SHARE),
                    entry("keep2", SmbConstants.TYPE_SHARE));
    
            // Filter accepts names starting with "keep"
            when(filter.accept(any())).thenAnswer(inv -> {
                SmbResource res = inv.getArgument(0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbFile.java

                } else {
                    // Optimize file/directory existence check with connection reuse
                    try (SmbTreeHandleImpl th = ensureTreeConnected()) {
                        if (this.fileLocator.getType() == TYPE_SHARE) {
                            // For share root, tree connection success indicates existence
                            // This avoids unnecessary queryPath calls
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top