Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 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/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)
  3. 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)
  4. 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)
Back to top