Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21926

Re: How to do chown or chgrp

Date 2013-01-31 15:57 +0000
From lipska the kat <"nospam at neversurrender dot co dot uk">
Organization Trollbusters 3
Newsgroups comp.lang.java.programmer
Subject Re: How to do chown or chgrp
References <713a2f2b-eaad-4689-9089-314683eac4b3@googlegroups.com>
Message-ID <dc6dnZedsLT0CZfMnZ2dnUVZ7tKdnZ2d@bt.com> (permalink)

Show all headers | View raw


On 31/01/13 14:56, loial wrote:
> What is the best way to run the unix chown and chgrp commands in Java?
>
> I only need to run these commands on one file at at time.

Surely the 'Java' way (in 1.7 at least) is

java.nio.file.Files.setPosixFilePermissions

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to do chown or chgrp loial <jldunn2000@gmail.com> - 2013-01-31 06:56 -0800
  Re: How to do chown or chgrp Arne Vajhøj <arne@vajhoej.dk> - 2013-01-31 10:37 -0500
  Re: How to do chown or chgrp lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-31 15:57 +0000
    Re: How to do chown or chgrp Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:56 -0500
      Re: How to do chown or chgrp lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-02 08:55 +0000
        Re: How to do chown or chgrp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-02 08:34 -0800
          Re: How to do chown or chgrp lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-02 20:26 +0000
  Re: How to do chown or chgrp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-01 06:37 -0800

csiph-web