SRJRCFrames
v0.1.296

de.schwarzrot.system.support
Class FileUtils

java.lang.Object
  extended by de.schwarzrot.system.support.FileUtils

public class FileUtils
extends Object


Constructor Summary
FileUtils()
           
 
Method Summary
static boolean checkSudoAccess(String sudoPassword)
           
static boolean copyFile(File dest, File source)
           
static boolean copyFile(File dest, File source, String sudoPassword)
           
static boolean copyRecursive(File dest, File source)
           
static boolean createDirectory(File dir, String sudoPassword)
           
static boolean createSoftLink(File dest, File source)
           
static String getExtension(File aFile)
           
static boolean joinFiles(File dest, Collection<File> sources)
           
static boolean moveOrRename(File dest, File source)
           
static boolean removeDirectory(File dir)
           
static boolean removeDirectory(File dir, String sudoPassword)
           
static boolean removeDirectoryDoNotCare(File dir)
           
static void setFileOwner(File file, String owner, String sudoPassword)
           
static void setFileOwner(File file, String owner, String sudoPassword, boolean recursive)
           
static void setFilePermission(File file, String permission, String sudoPassword)
           
static void setFilePermission(File file, String permission, String sudoPassword, boolean recursive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

checkSudoAccess

public static boolean checkSudoAccess(String sudoPassword)

copyFile

public static boolean copyFile(File dest,
                               File source)

copyFile

public static boolean copyFile(File dest,
                               File source,
                               String sudoPassword)

copyRecursive

public static boolean copyRecursive(File dest,
                                    File source)

createDirectory

public static boolean createDirectory(File dir,
                                      String sudoPassword)

createSoftLink

public static boolean createSoftLink(File dest,
                                     File source)
                              throws Exception
Throws:
Exception

getExtension

public static String getExtension(File aFile)

joinFiles

public static boolean joinFiles(File dest,
                                Collection<File> sources)

moveOrRename

public static boolean moveOrRename(File dest,
                                   File source)

removeDirectory

public static boolean removeDirectory(File dir)

removeDirectory

public static boolean removeDirectory(File dir,
                                      String sudoPassword)

removeDirectoryDoNotCare

public static boolean removeDirectoryDoNotCare(File dir)

setFileOwner

public static void setFileOwner(File file,
                                String owner,
                                String sudoPassword)

setFileOwner

public static void setFileOwner(File file,
                                String owner,
                                String sudoPassword,
                                boolean recursive)

setFilePermission

public static void setFilePermission(File file,
                                     String permission,
                                     String sudoPassword)

setFilePermission

public static void setFilePermission(File file,
                                     String permission,
                                     String sudoPassword,
                                     boolean recursive)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.