Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for fileAttributes (0.07 sec)

  1. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            this.desiredAccess = desiredAccess;
        }
    
        /**
         * Set the file attributes for the created file
         * @param fileAttributes the fileAttributes to set
         */
        public void setFileAttributes(final int fileAttributes) {
            this.fileAttributes = fileAttributes;
        }
    
        /**
         * Set the share access mode for the file
         * @param shareAccess the shareAccess to set
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

        void testSetFid() {
            response.fid = 123;
            assertEquals(123, response.fid);
        }
    
        @Test
        void testSetFileAttributes() {
            response.fileAttributes = 0x20; // ATTR_ARCHIVE
            assertEquals(0x20, response.fileAttributes);
        }
    
        @Test
        void testSetLastWriteTime() {
            long time = System.currentTimeMillis();
            response.lastWriteTime = time;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            setFieldValue(response, "wordCount", 10);
    
            // Write test data to buffer
            int fileAttributes = 0x0021; // FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_ARCHIVE
            long lastWriteTime = System.currentTimeMillis();
            int fileSize = 12345678;
    
            SMBUtil.writeInt2(fileAttributes, buffer, bufferIndex);
            SMBUtil.writeUTime(lastWriteTime, buffer, bufferIndex + 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. cmd/os_windows.go

    		}
    		name := syscall.UTF16ToString(data.FileName[0:])
    		if name == "" || name == "." || name == ".." { // Useless names
    			continue
    		}
    
    		var typ os.FileMode // regular file
    		switch {
    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0:
    			// Reparse point is a symlink
    			fi, err := os.Stat(pathJoin(dirPath, name))
    			if err != nil {
    				// It got deleted in the meantime, not found
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

         */
        @Test
        public void testReadParameterWordsWireFormat() {
            // Prepare a buffer with sample data.
            // 2 bytes for fileAttributes, 4 bytes for lastWriteTime, 4 bytes for fileSize
            byte[] buffer = new byte[20];
            // File Attributes: 0x0010 (Directory)
            buffer[0] = 0x10;
            buffer[1] = 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/InfoTest.java

            SmbComQueryInformationResponse resp = new SmbComQueryInformationResponse(1000L) {
            };
            java.lang.reflect.Field fileAttr = SmbComQueryInformationResponse.class.getDeclaredField("fileAttributes");
            fileAttr.setAccessible(true);
            fileAttr.setInt(resp, 0xABCD);
            java.lang.reflect.Field lastWrite = SmbComQueryInformationResponse.class.getDeclaredField("lastWriteTime");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            i += 8;
    
            SMBUtil.writeInt8(allocSize, body, i); // AllocationSize
            i += 8;
            SMBUtil.writeInt8(eof, body, i); // EndOfFile
            i += 8;
    
            SMBUtil.writeInt4(attrs, body, i); // FileAttributes
            i += 4;
            i += 4; // Reserved2
    
            System.arraycopy(fileId, 0, body, i, 16); // FileId
            i += 16;
    
            SMBUtil.writeInt4(0, body, i); // CreateContextsOffset
            i += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                endOfFileField.setAccessible(true);
                assertEquals(512L, endOfFileField.get(response));
    
                Field fileAttributesField = Smb2CloseResponse.class.getDeclaredField("fileAttributes");
                fileAttributesField.setAccessible(true);
                assertEquals(0x01, fileAttributesField.get(response));
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Boundary Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFile.java

         *
         * @param <T> the response type
         * @param th the tree handle
         * @param createDisposition the create disposition
         * @param createOptions the create options
         * @param fileAttributes the file attributes
         * @param desiredAccess the desired access flags
         * @param shareAccess the share access flags
         * @param first the first request to execute
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/TempFileCreator.java

                        .setPermissions(EnumSet.allOf(AclEntryPermission.class))
                        .setFlags(DIRECTORY_INHERIT, FILE_INHERIT)
                        .build());
            FileAttribute<ImmutableList<AclEntry>> attribute =
                new FileAttribute<ImmutableList<AclEntry>>() {
                  @Override
                  public String name() {
                    return "acl:acl";
                  }
    
                  @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top