Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setFileInformation (0.07 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                assertEquals(testAdditionalInfo, actualAdditionalInfo);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test setFileInformation method")
        void testSetFileInformation() {
            request = new Smb2SetInfoRequest(mockConfig);
    
            // Create a mock FileInformation that is also Encodable
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java

         *
         * @param <T>
         *            the type of file information
         * @param fi
         *            the file information to set
         */
        public <T extends FileInformation & Encodable> void setFileInformation(final T fi) {
            setInfoType(Smb2Constants.SMB2_0_INFO_FILE);
            setFileInfoClass(fi.getFileInformationLevel());
            setInfo(fi);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

    import jcifs.Configuration;
    import jcifs.internal.fscc.FileBasicInfo;
    import jcifs.internal.fscc.FileInformation;
    import jcifs.internal.smb1.trans.SmbComTransaction;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Trans2 SetFileInformation request message for modifying file metadata.
     * This class implements the TRANS2_SET_FILE_INFORMATION transaction to update
     * file attributes, timestamps, and other metadata properties.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                if (th.isSMB2()) {
                    final Smb2SetInfoRequest req = new Smb2SetInfoRequest(th.getConfig(), fh.getFileId());
                    req.setFileInformation(new FileEndOfFileInformation(newLength));
                    th.send(req, RequestParam.NO_RETRY);
                } else if (th.hasCapability(SmbConstants.CAP_NT_SMBS)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbCopyUtil.java

                    }
    
                    if (dh.isSMB2()) {
                        final Smb2SetInfoRequest req = new Smb2SetInfoRequest(dh.getConfig(), dfd.getFileId());
                        req.setFileInformation(new FileBasicInfo(ctime, atime, mtime, 0L, attrs));
                        dh.send(req);
                    } else if (dh.hasCapability(SmbConstants.CAP_NT_SMBS)) {
                        // use the open file descriptor
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        // no open option for truncating, need to truncate the file
                        final Smb2SetInfoRequest treq = new Smb2SetInfoRequest(th.getConfig(), fh.getFileId());
                        treq.setFileInformation(new FileEndOfFileInformation(0));
                        th.send(treq, RequestParam.NO_RETRY);
                    }
                }
            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFile.java

                        final Smb2SetInfoRequest setInfoReq = new Smb2SetInfoRequest(sh.getConfig());
                        setInfoReq.setFileId(createResp.getFileId());
                        setInfoReq.setFileInformation(new FileRenameInformation2(destPath, replace));
                        sh.send(setInfoReq);
                    } finally {
                        // Always close the file handle - ensure createResp is not null
    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