on 01-06-2012 4:22 AM
Hi All,
From Web dynpro application I am trying to change a file permission, the file located in a OS level path. My J2EE engine is running with Java 5. Can anybody provide me correct API for solving the problem for Java 5.
Thanks
Chandan
Edited by: Chandan Jash on Jan 6, 2012 5:22 AM
First you need to make sure your web dynpro application has permissions to access the file in the first place, but you could use the standard java.io.File class:
File file = new File("/path/file.sh");
file.setExecutable(false);
file.setReadable(false);
file.setWritable(false);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.