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());
}
}
checked if file/directory specifed exist. if not throw exception.
This behaviour is not for chmod(permission, fileset) since fileset allows the user to define filter rules for the files they want affected..
Issue #3388 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
checked if file/directory specifed exist. if not throw exception.
This behaviour is not for chmod(permission, fileset) since fileset allows the user to define filter rules for the files they want affected..