At a guess, have a look at the Permission class, sounds like it might be of
some use.


Ade

-----Original Message-----
From: Kyle McNamara [mailto:[EMAIL PROTECTED]
Sent: 18 November 2003 16:03
To: CF-Talk
Subject: java in CFMX question

I am doing this now before any time they try to open the file:
<cfobject type="JAVA" name="jFile" class="java.io.File" action=""
<cfscript>
newAttribute = jFile.init('filenameher');
newAttribute.setReadOnly();
</cfscript>

...which seems to be working well.

The only thing is, ther are certain times I need to make it writeable too...
when researcfing the FILE class at
<http://java.sun.com/j2se/1.4.2/docs/api/index.html> I noticed that they
have setReadOnly(); and but no way to set it to writeable... it has a
function to check if it is currently wriateable (canWrite();).... but
nothing else I can see...

any thoughts on this?

tia,
k
  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to