× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2009-12-28T20:28:22Z  · last modified 2010-03-29T17:07:20Z

AQFileSytem chmod for a file in Unix - which doesnt exist


Priority Low
Complexity Trivial
Component Open API - General
Version 09.0

ADS 8.5 dev7.0

Used AQFileSystem chmod in linux.

tried to chnage the permissions of a file which does not exist under the specified directory

ADS displays changed permissions of file which doesnt exist

Sample Program

var test_data_dir = "/home/niels/test";
var AQFS = aqua.filesystem;
test_chmod();
function test_chmod() {
    var dest_dir = test_data_dir ;
    var dest_file = test_data_dir + "/empty1001.txt";
    var permissions = "654";
    exec_chmod(dest_file, permissions);
}
function exec_chmod(pathname, permissions) {
    try {
        aqua.println("chmod: changing permissions of [" + pathname + "] to [" + permissions + "]...");
        AQFS.chmod(pathname, permissions);
  

        aqua.println("chmod done.");
    } catch(ex) {
        aqua.println("chmod failed - " + ex.toString());
    }
}

Issue #3388

Closed
Fixed
Resolved 2010-03-29T17:07:20Z
 
 
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