|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.file.util.Chmod
public class Chmod
This class is a gateway to the chmod UNIX command. It provides static methods that allow to change a
file's permissions, overcoming the limitations of java.io.File.
The chmod command is available only under UNIX-based
systems -- a call to any of this class' methods under other OS will likely fail.
FilePermissions| Constructor Summary | |
|---|---|
Chmod()
|
|
| Method Summary | |
|---|---|
static boolean |
chmod(AbstractFile[] files,
int permissions)
Attemps to change the permissions of the given files and returns true if the chmod
command reported a success. |
static boolean |
chmod(AbstractFile[] files,
java.lang.String permissions)
Attemps to change the permissions of the given files and returns true if the chmod
command reported a success. |
static boolean |
chmod(AbstractFile file,
int permissions)
Attemps to change the permissions of the given file and returns true if the chmod
command reported a success. |
static boolean |
chmod(AbstractFile file,
java.lang.String permissions)
Attemps to change the permissions of the given file and returns true if the chmod
command reported a success. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Chmod()
| Method Detail |
|---|
public static boolean chmod(AbstractFile file,
int permissions)
true if the chmod
command reported a success.
file - the file whose permissions are to be changedpermissions - the new permissions
chmod command reported a successFilePermissions
public static boolean chmod(AbstractFile file,
java.lang.String permissions)
true if the chmod
command reported a success.
file - the file whose permissions are to be changedpermissions - the new permissions, in any form accepted by the chmod command
chmod command reported a success
public static boolean chmod(AbstractFile[] files,
int permissions)
true if the chmod
command reported a success.
files - the files whose permissions are to be changedpermissions - the new permissions
chmod command reported a successFilePermissions
public static boolean chmod(AbstractFile[] files,
java.lang.String permissions)
true if the chmod
command reported a success.
files - the files whose permissions are to be changedpermissions - the new permissions, in any form accepted by the chmod command
chmod command reported a success
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard