Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can one set the File Permissions in Java


  • From: rajeevwebweavers@xxxxxxxxxxx (Rajeev@xxxxxxxxxxxxxx _)
  • Subject: Can one set the File Permissions in Java
  • Date: Thu, 30 Mar 2000 16:30:58 GMT

Hello

yes u can check File class there is a method setReadOnly() (1.2 only)

After invoking this method the file or directory is guaranteed not to change 
until it is either deleted or marked to allow write access. Whether or not a 
read-only file or directory may be deleted depends upon the underlying 
system.


Rajeev Mahajan
Web Weavers





I am creating an application that requires a Log file, that should Not be
Delete-able by the client. I can not see how to set this file as Read-Only,
or even Hidden. My Application is only required to run on Win32, so a Native
solution is not out of the question (although undesirable).
Thank you for any help provided.
Live Long & Prosper,
wlb

   )
  (  (
  ) ) (
(  (  ) )
)  )  (  (
____________
\          /\
\  JAVA  /\/
__\______/__
------------
Walter Bramhall - Java Engineer
LSI Logic - Storage Division
316-636-8495
Walter.Bramhall@xxxxxxxx



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx