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());
}
}
will make the 3 methods mentioned throw an exception if the partition provided is neither a file or a directory.
Issue #3370 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
will make the 3 methods mentioned throw an exception if the partition provided is neither a file or a directory.