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: marijn@xxxxxxxxxxxxxxxxxxxxx (Marijn H. van der Ploeg)
  • Subject: Can one set the File Permissions in Java
  • Date: Fri, 31 Mar 2000 10:32:05 +0200

Hi,

Look in java.io.File, where you will find method setReadOnly().

Cheers,


Marijn


----- Original Message -----
From: Bramhall, Walter <walter.bramhall@xxxxxxxx>
To: <advanced-java@xxxxxxxxxxxxxxxx>
Sent: Thursday, March 30, 2000 5:16 PM
Subject: Can one set the File Permissions in Java


> 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
>
>
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
>
>


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