Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for createDisposition (0.06 sec)

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

        }
    
        /**
         * Set the create disposition specifying what action to take if file exists or doesn't exist
         * @param createDisposition the createDisposition to set
         */
        public void setCreateDisposition(final int createDisposition) {
            this.createDisposition = createDisposition;
        }
    
        /**
         * Set the create options that control file creation behavior
    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/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            this.shareAccess = shareAccess;
    
            // createDisposition
            if ((flags & SmbFile.O_TRUNC) == SmbFile.O_TRUNC) {
                // truncate the file
                if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) {
                    // create it if necessary
                    createDisposition = FILE_OVERWRITE_IF;
                } else {
                    createDisposition = FILE_OVERWRITE;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

            // createDisposition
            if ((flags & SmbConstants.O_TRUNC) == SmbConstants.O_TRUNC) {
                // truncate the file
                if ((flags & SmbConstants.O_CREAT) == SmbConstants.O_CREAT) {
                    // create it if necessary
                    this.createDisposition = FILE_OVERWRITE_IF;
                } else {
                    this.createDisposition = FILE_OVERWRITE;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

                SmbComNTCreateAndX req = createRequest(flags, 0);
                // Use reflection to read the private field createDisposition
                int actual = (int) getPrivateField(req, "createDisposition");
                assertEquals(expected, actual, "createDisposition should match");
            }
        }
    
        @Test
        @DisplayName("CreateOptions default padding")
        void createOptionsAddedWhenLow() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            // Check default create disposition (OPEN) at offset 36
            int createDisposition =
                    (buffer[36] & 0xFF) | ((buffer[37] & 0xFF) << 8) | ((buffer[38] & 0xFF) << 16) | ((buffer[39] & 0xFF) << 24);
            assertEquals(Smb2CreateRequest.FILE_OPEN, createDisposition);
        }
    
        @Test
        @DisplayName("Test path with special characters")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFile.java

        protected <T extends ServerMessageBlock2Response> T withOpen(final SmbTreeHandleImpl th, final int createDisposition,
                final int desiredAccess, final int shareAccess, final ServerMessageBlock2Request<T> first,
                final ServerMessageBlock2Request<?>... others) throws CIFSException {
            return withOpen(th, createDisposition, 0, SmbConstants.ATTR_NORMAL, desiredAccess, shareAccess, first, others);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top