com.seitenbau.jenkins.plugins.dynamicparameter.util
Class FileUtils

java.lang.Object
  extended by org.apache.commons.io.FileUtils
      extended by com.seitenbau.jenkins.plugins.dynamicparameter.util.FileUtils

public class FileUtils
extends org.apache.commons.io.FileUtils

Extended file utility methods.


Field Summary
 
Fields inherited from class org.apache.commons.io.FileUtils
EMPTY_FILE_ARRAY, ONE_GB, ONE_KB, ONE_MB
 
Constructor Summary
FileUtils()
           
 
Method Summary
static boolean isDescendant(String root, String descendant)
          Check if a file is descendant of the given root.
static boolean isWindows()
          Check if the current system is windows.
 
Methods inherited from class org.apache.commons.io.FileUtils
byteCountToDisplaySize, checksum, checksumCRC32, cleanDirectory, contentEquals, convertFileCollectionToFileArray, copyDirectory, copyDirectory, copyDirectory, copyDirectory, copyDirectoryToDirectory, copyFile, copyFile, copyFileToDirectory, copyFileToDirectory, copyURLToFile, deleteDirectory, deleteQuietly, forceDelete, forceDeleteOnExit, forceMkdir, isFileNewer, isFileNewer, isFileNewer, isFileOlder, isFileOlder, isFileOlder, iterateFiles, iterateFiles, lineIterator, lineIterator, listFiles, listFiles, moveDirectory, moveDirectoryToDirectory, moveFile, moveFileToDirectory, moveToDirectory, openInputStream, openOutputStream, readFileToByteArray, readFileToString, readFileToString, readLines, readLines, sizeOfDirectory, toFile, toFiles, touch, toURLs, waitFor, writeByteArrayToFile, writeLines, writeLines, writeLines, writeLines, writeStringToFile, writeStringToFile
 
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

isWindows

public static boolean isWindows()
Check if the current system is windows.

Returns:
true if file system delimiter is backslash

isDescendant

public static boolean isDescendant(String root,
                                   String descendant)
Check if a file is descendant of the given root. The method does not access the file system, but uses the provided paths to check if the given root is a prefix of the given path; therefore, the caller MUST take care to make the two paths absolute.

Parameters:
root - root path
descendant - descendant path
Returns:
true if a descendant


Copyright © 2004-2012. All Rights Reserved.