🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8717

Change the directory permissions in Java

#8717
From: Dillan Fernando
Date: Fri, 09 Mar 2001 01:50
22 lines
1504 bytes
Hi all,

Is there a way for me to change the permissions of a directory, that I
created using the File Object. ?

I'm creating a dir, under a "parent" dir which has "777". How can I make the
new dir to have the same permissions as the parent dir ?.

Is there any APIs in Java that I can use to do this ?

I'm using Linux RH6.2
JDK1.3

Thanks for your help

--
Dillan Fernando
ThoughtShare Communications Inc.
Software Developer
Email: dillan@thoughtshare.com <mailto:dillan@thoughtshare.com>
Tel: (604) 873-8724
Fax: (604) 873-8772
Technical Details
Message-ID: <989cpp$qer8@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!bornews.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e3475c5e57d50c08,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-08 18:12:08 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!bornews.borland.com!not-for-mail
From: "Dillan Fernando" <dillanfernando@yahoo.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Change the directory permissions in Java
Date: Thu, 8 Mar 2001 17:50:35 -0800
Organization: Another Netscape Collabra Server User
Lines: 24
Message-ID: <989cpp$qer8@bornews.inprise.com>
NNTP-Posting-Host: s216-232-27-165.bc.hsia.telus.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300