from java, use following code create file:
file dirname = new file("/var/www/html/nyk/app/webroot/musicdb/music.db");
but file gets created 'lock symbol' on top of indicates restricted permissions. able change permissions of file manually terminal using cgmod -r 777 filename
. using code in same program, copies created file destination. due restricted permission, not able copy file.
how can create file eliminating restricted permsiion issue in first place?
have tried this?
myfile.setreadable(true); myfile.setwritable(true);
Comments
Post a Comment