org.kuali.kfs.sys.batch
Class BatchFileUtils
java.lang.Object
org.kuali.kfs.sys.batch.BatchFileUtils
public class BatchFileUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchFileUtils
public BatchFileUtils()
retrieveBatchFileLookupRootDirectories
public static List<File> retrieveBatchFileLookupRootDirectories()
pathRelativeToRootDirectory
public static String pathRelativeToRootDirectory(String absolutePath)
- returns a path relative to the appropriate lookup root directory, while including the name of the root directory for example,
if the parameter is "c:\opt\staging\gl\somefile.txt" and the roots are "c:\opt\reports;c:\opt\staging", it will return
"staging\gl\somefile.txt" (the system-specific path separator will be used). If there are multiple matching roots, then the
first one to be matched will take precedence
- Parameters:
absolutePath
- an absolute path for a file/directory
resolvePathToAbsolutePath
public static String resolvePathToAbsolutePath(String path)
- Parameters:
path
- a path string that was generated by pathRelativeToRootDirectory(String)
- Returns:
- an absolute path, including the root directory
isDirectoryAccessible
public static boolean isDirectoryAccessible(String directory)
isSuperDirectoryOf
public static boolean isSuperDirectoryOf(File superDirectory,
File directory)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.