Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getDiskFreeSpace (0.2 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:\`.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 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 ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbResource.java

         * in 0L being returned.
         *
         * @return the free disk space in bytes of the drive on which this file or
         *         directory resides
         * @throws CIFSException
         */
        long getDiskFreeSpace () throws CIFSException;
    
    
        /**
         * Returns the length of this <tt>SmbResource</tt> in bytes. If this object
         * is a <tt>TYPE_SHARE</tt> the total capacity of the disk shared in
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
  4. 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 ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  5. 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 {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
Back to top