org.griphyn.vdl.util
Class Chmod
java.lang.Object
org.griphyn.vdl.util.Chmod
public class Chmod
- extends Object
This class changes file permission modes in
Unix/Linux environment.
- Version:
- $Revision: 50 $
- Author:
- Jens-S. V??ckler, Yong Zhao
|
Constructor Summary |
Chmod()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Chmod
public Chmod()
changePermission
public static int changePermission(String filename,
String dir)
throws IOException,
InterruptedException
- Changes file permission to be executable
- Parameters:
filename - is the name of the file to change permissions,
it allows wildcard.dir - is the directory where the file is located.
- Returns:
- 0 if successful
- Throws:
IOException
InterruptedException
Copyright © 2007 The University of Southern California. All Rights Reserved.