public class BatchFileUtils extends Object
Constructor and Description |
---|
BatchFileUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isDirectoryAccessible(String directory) |
static boolean |
isSuperDirectoryOf(File superDirectory,
File directory) |
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).
|
static String |
resolvePathToAbsolutePath(String path) |
static List<File> |
retrieveBatchFileLookupRootDirectories() |
public BatchFileUtils()
public static List<File> retrieveBatchFileLookupRootDirectories()
public static String pathRelativeToRootDirectory(String absolutePath)
absolutePath
- an absolute path for a file/directorypublic static String resolvePathToAbsolutePath(String path)
path
- a path string that was generated by pathRelativeToRootDirectory(String)
public static boolean isDirectoryAccessible(String directory)
public static boolean isSuperDirectoryOf(File superDirectory, File directory)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.