Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for getAttributes (0.45 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            when(mockFile1.length()).thenReturn(2048L);
            when(mockFile1.lastModified()).thenReturn(System.currentTimeMillis() - 3600000);
            when(mockFile1.isDirectory()).thenReturn(false);
            when(mockFile1.getAttributes()).thenReturn(0x20); // FILE_ATTRIBUTE_ARCHIVE
            when(mockFile1.createTime()).thenReturn(System.currentTimeMillis() - 7200000);
            when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            when(mockFile1.length()).thenReturn(1024L);
            when(mockFile1.lastModified()).thenReturn(1000L);
            when(mockFile1.isDirectory()).thenReturn(false);
            when(mockFile1.getAttributes()).thenReturn(0x20);
            when(mockFile1.createTime()).thenReturn(500L);
            when(mockFile1.lastAccess()).thenReturn(800L);
    
            when(mockFile2.getName()).thenReturn("dir1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * 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;
        /**
         * A file with this bit on as returned by {@code getAttributes()} is
         * a directory
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

        public final int getFileAttributes() {
            return this.fileAttributes;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbBasicFileInfo#getAttributes()
         */
        @Override
        public final int getAttributes() {
            return getFileAttributes();
        }
    
        /**
         * Get the unique file identifier
         * @return the fileId
         */
        public final byte[] getFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            assertEquals(size, fileInfo.getSize());
            assertEquals(lastModified, fileInfo.getLastModified());
            assertEquals(isDirectory, fileInfo.isDirectory());
            assertEquals(attributes, fileInfo.getAttributes());
            assertEquals(creationTime, fileInfo.getCreationTime());
            assertEquals(lastAccessTime, fileInfo.getLastAccessTime());
        }
    
        @Test
        public void testUpdateExistingChild() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFile.java

            }
        }
    
        @Override
        public void setReadOnly() throws SmbException {
            setAttributes(getAttributes() | ATTR_READONLY);
        }
    
        @Override
        public void setReadWrite() throws SmbException {
            setAttributes(getAttributes() & ~ATTR_READONLY);
        }
    
        /**
         * Returns a {@link java.net.URL} for this <code>SmbFile</code>. The
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

                return isDirectory;
            }
    
            /**
             * Gets the SMB file attributes for this cached item
             * @return the file attributes
             */
            public long getAttributes() {
                return attributes;
            }
    
            /**
             * Gets the creation timestamp of this cached item
             * @return the creation time
             */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            // Update cache with new directory listing
            for (SmbFile file : files) {
                try {
                    entry.updateChild(file.getName(), file.length(), file.lastModified(), file.isDirectory(), file.getAttributes(),
                            file.createTime(), file.lastAccess());
                } catch (Exception e) {
                    log.debug("Error updating cache entry for {}: {}", file.getName(), e.getMessage());
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertTrue(file.exists(), "File should exist");
    
            // Set hidden attribute
            int attrs = file.getAttributes();
            file.setAttributes(attrs | SmbConstants.ATTR_HIDDEN);
    
            // Verify hidden attribute is set
            assertTrue((file.getAttributes() & SmbConstants.ATTR_HIDDEN) != 0, "File should be hidden");
    
            // File should still be accessible
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  10. docs/en/docs/js/termynal.js

            this.progressChar = options.progressChar
                || this.container.getAttribute(`${this.pfx}-progressChar`) || '█';
    		this.progressPercent = options.progressPercent
                || parseFloat(this.container.getAttribute(`${this.pfx}-progressPercent`)) || 100;
            this.cursor = options.cursor
                || this.container.getAttribute(`${this.pfx}-cursor`) || '▋';
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:32:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top