Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetDiskFreeSpace (0.1 sec)

  1. internal/disk/stat_windows.go

    	GetDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW")
    
    	// GetDiskFreeSpace - https://msdn.microsoft.com/en-us/library/windows/desktop/aa364935(v=vs.85).aspx
    	// Retrieves information about the specified disk, including the amount of free space on the disk.
    	GetDiskFreeSpace = kernel32.NewProc("GetDiskFreeSpaceW")
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `C:\`.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileAttributesTest.java

                }
            }
        }
    
    
        @Test
        public void testGetFreeSpace () throws CIFSException, MalformedURLException {
            try ( SmbResource f = getDefaultShareRoot() ) {
                f.getDiskFreeSpace();
            }
        }
    
    
        public void assertCloseTime ( long timeMs ) {
            if ( timeMs - System.currentTimeMillis() > 5 * 60 * 1000L ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFile.java

                return this.size;
            }
            catch ( CIFSException e ) {
                throw SmbException.wrap(e);
            }
        }
    
    
        @Override
        public long getDiskFreeSpace () throws SmbException {
            try ( SmbTreeHandleImpl th = ensureTreeConnected() ) {
                int t = getType();
                if ( t == TYPE_SHARE || t == TYPE_FILESYSTEM ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFile.java

     * in 0L being returned.
     *
     * @return the free disk space in bytes of the drive on which this file or
     * directory resides
     */
        public long getDiskFreeSpace() throws SmbException {
            if( getType() == TYPE_SHARE || type == TYPE_FILESYSTEM ) {
                int level = Trans2QueryFSInformationResponse.SMB_FS_FULL_SIZE_INFORMATION;
                try {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
Back to top