Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

File permission  RSS feed

 
Manuel Corrales
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i set a file permission when i create it form java?.

I want to give full acces to a file to anyone (actually a directory).
 
K Riaz
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The OS deals with users and permissions. You can only set it be read-only. If you want to check whether you can read and write to a File, call canRead() or canWrite() respectively from the File class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!