× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2009-12-22T21:23:56Z  · last modified 2010-03-17T16:48:19Z

AQFileSystem - getTotalSpace


Priority Low
Complexity Unknown
Component Open API - General
Version 09.0

ADS 8.5 dev6.2

For AQFileSytem items - getFreeSpace, getTotalSpace and getUsableSpace, if a partition is specified which does not exist in the system, 

ADS displays 0 bytes. For e.g in the program below a:\\ does not exist and ADS displays 0 bytes.

If partition does not exist, it should display the below error

getTotalSpace failed - JavaException: com.aquafold.openapi.AQException: Partition is not specified.

 

Sample Program

var test_data_dir = "a:\\test";
var AQFS = aqua.filesystem;
test_getTotalSpace();

function test_getTotalSpace(){
   var src_file = test_data_dir ;
  exec_getTotalSpace(src_file);  
 }

function exec_getTotalSpace(partition) {
    try {
        var space;
        space = AQFS.getTotalSpace(partition);
        aqua.println("Space --> :: " + space);
        } catch(ex) {
        aqua.println("getTotalSpace failed - " + ex.toString());
    }
}

Issue #3370

Closed
Fixed
Resolved 2010-03-17T16:48:19Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017