public class FileOwner extends Object
File
using the chown
system command.OperatingSystem.isLinux()
Constructor and Description |
---|
FileOwner(File file)
Create a new
FileOwner for the given File . |
Modifier and Type | Method and Description |
---|---|
boolean |
own(String user,
String group)
Set the owner and group for the
File which has been passed to the constructor, using the chown
system command. |
public boolean own(String user, String group)
File
which has been passed to the constructor, using the chown
system command. Works only on linux operating systems (see OperatingSystem.isLinux()
).user
- the owner (user) to setgroup
- the group to settrue
if setting the user/group was successful, false
otherwiseCopyright © 2011–2017 aiticon GmbH. All rights reserved.