Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDiskFreeSpace (0.06 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

                when(mockResource.length()).thenReturn(expectedLength);
                when(mockResource.getDiskFreeSpace()).thenReturn(expectedFreeSpace);
    
                // When
                long length = mockResource.length();
                long freeSpace = mockResource.getDiskFreeSpace();
    
                // Then
                assertEquals(expectedLength, length, "Should return correct file length");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbResource.java

         *
         * @return the free disk space in bytes of the drive on which this file or
         *         directory resides
         * @throws CIFSException if an error occurs accessing the resource
         */
        long getDiskFreeSpace() throws CIFSException;
    
        /**
         * Returns the length of this <code>SmbResource</code> in bytes. If this object
         * is a <code>TYPE_SHARE</code> the total capacity of the disk shared in
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
Back to top