Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for ATTR_SYSTEM (0.24 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;
        }
    
        @Override
    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

        @CsvSource({
                // Positive cases (should be accepted)
                "1, 1, true", // ATTR_READONLY
                "2, 2, true", // ATTR_HIDDEN
                "4, 4, true", // ATTR_SYSTEM
                "16, 16, true", // ATTR_DIRECTORY
                "32, 32, true", // ATTR_ARCHIVE
                "3, 1, true", // READONLY | HIDDEN vs READONLY
                "3, 2, true", // READONLY | HIDDEN vs HIDDEN
    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;
        }
    
        @Override
    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

            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() {
            // Test the writing of bytes to a byte array
    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/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)
  6. src/main/java/jcifs/smb/SmbFile.java

            return SmbEnumerationUtil.listFiles(this, "*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, filter);
        }
    
        @Override
        public CloseableIterator<SmbResource> children() throws CIFSException {
            return SmbEnumerationUtil.doEnum(this, "*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, null);
        }
    
        @Override
    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)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

        /**
         * A file with this bit on as returned by {@code getAttributes()} or set
         * with {@code setAttributes()} will be a system file
         */
        public static final int ATTR_SYSTEM = 0x04;
        /**
         * A file with this bit on as returned by {@code getAttributes()} is
         * a volume
         */
        public static final int ATTR_VOLUME = 0x08;
        /**
    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

        // 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;
        /** Archive attribute */
        int ATTR_ARCHIVE = 0x20;
    
    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

         */
        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;
        /**
         * File is a directory
         */
        int ATTR_DIRECTORY = 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)
  10. src/main/java/jcifs/internal/smb1/com/SmbComRename.java

            super(config, SMB_COM_RENAME);
            this.oldFileName = oldFileName;
            this.newFileName = newFileName;
            this.searchAttributes = SmbConstants.ATTR_HIDDEN | SmbConstants.ATTR_SYSTEM | SmbConstants.ATTR_DIRECTORY;
        }
    
        @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
    - 3.1K bytes
    - Click Count (0)
Back to Top