Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for ATTR_HIDDEN (0.15 seconds)

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

        private final int searchAttributes;
    
        SmbComDelete(final String fileName) {
            this.path = fileName;
            command = SMB_COM_DELETE;
            searchAttributes = ATTR_HIDDEN | ATTR_HIDDEN | ATTR_SYSTEM;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            writeInt2(searchAttributes, dst, dstIndex);
            return 2;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComRename.java

        SmbComRename(final String oldFileName, final String newFileName) {
            command = SMB_COM_RENAME;
            this.oldFileName = oldFileName;
            this.newFileName = newFileName;
            searchAttributes = ATTR_HIDDEN | ATTR_SYSTEM | ATTR_DIRECTORY;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            writeInt2(searchAttributes, dst, dstIndex);
            return 2;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

            // Test the writing of parameter words to a byte array
            byte[] dst = new byte[2];
            int bytesWritten = smbComDelete.writeParameterWordsWireFormat(dst, 0);
            assertEquals(2, bytesWritten);
            // ATTR_HIDDEN (0x02) | ATTR_SYSTEM (0x04) = 0x06
            assertEquals(0x06, dst[0]);
            assertEquals(0x00, dst[1]);
        }
    
        @Test
        public void testWriteBytesWireFormat() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                if (this.fileLocator.getShare().endsWith("$")) {
                    return true;
                }
                return false;
            }
            exists();
            return (this.attributes & ATTR_HIDDEN) == ATTR_HIDDEN;
        }
    
        @Override
        public long createTime() throws SmbException {
            if (!this.fileLocator.isRootOrShare()) {
                exists();
                return this.createTime;
    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)
  6. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

            }
            desiredAccess |= SHARING_DENY_NONE;
            desiredAccess &= ~0x1; // Win98 doesn't like GENERIC_READ ?! -- get Access Denied.
    
            // searchAttributes
            searchAttributes = ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM;
    
            // fileAttributes
            fileAttributes = 0;
    
            // openFunction
            if ((flags & SmbFile.O_TRUNC) == SmbFile.O_TRUNC) {
                // truncate the file
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

                if (share.endsWith("$")) {
                    return true;
                }
                return false;
            }
            exists();
            return (attributes & ATTR_HIDDEN) == ATTR_HIDDEN;
        }
    
        /**
         * If the path of this <code>SmbFile</code> falls within a DFS volume,
         * this method will return the referral path to which it maps. Otherwise
    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)
  8. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        int CAP_EXTENDED_SECURITY = 0x80000000;
    
        // file attribute encoding
        /** Read-only file attribute */
        int ATTR_READONLY = 0x01;
        /** Hidden file attribute */
        int ATTR_HIDDEN = 0x02;
        /** System file attribute */
        int ATTR_SYSTEM = 0x04;
        /** Volume label attribute */
        int ATTR_VOLUME = 0x08;
        /** Directory attribute */
        int ATTR_DIRECTORY = 0x10;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  9. src/main/java/jcifs/SmbConstants.java

        // file attribute encoding
        /**
         * File is marked read-only
         */
        int ATTR_READONLY = 0x01;
        /**
         * File is marked hidden
         */
        int ATTR_HIDDEN = 0x02;
        /**
         * File is marked a system file
         */
        int ATTR_SYSTEM = 0x04;
        /**
         * File is marked a volume
         */
        int ATTR_VOLUME = 0x08;
        /**
    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)
  10. src/main/java/jcifs/internal/smb1/com/SmbComDelete.java

         */
        public SmbComDelete(final Configuration config, final String path) {
            super(config, SMB_COM_DELETE, path);
            this.searchAttributes = SmbConstants.ATTR_HIDDEN | SmbConstants.ATTR_HIDDEN | SmbConstants.ATTR_SYSTEM;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            SMBUtil.writeInt2(this.searchAttributes, dst, dstIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.6K bytes
    - Click Count (0)
Back to Top