Since your title says "File Operations", I assume you are talking about folders in the file system. I have never seen any Java API's for modifying rights on folders and directories. There may be some that I don't know of. The operating systems that Java runs on are very diverse as far as the rights that are supported and the methods for assigning rights to users.
Your Java code might accomplish what you want by executing a native program, (C, C++, etc.), that could modify the rights for you. You also could accomplish the same thing by making JNI calls into an OS library that modifies rights. You might just modify the directory so that only one user has rights to it. If your Java program was running as this user then it could write to the directory as needed, but others would still see it as read-only. What are you trying to accomplish? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 9:33 PM To: JRun-Talk Subject: File Operations help Required in JAVA Hi I have a Query here , I have a particular folder which is marked as read only and through a java program I want to add files to this folder now I want to know how to make the folder writable and then add the file and then make it back to a state as it was before as READ only. I looked through the API and did not find much on this any help will be appreciated Thanks Sanjeevi ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists