|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjenkins.plugins.shiningpanda.utils.FilePathUtil
public class FilePathUtil
Nested Class Summary | |
---|---|
static class |
FilePathUtil.Read
Get a file contents. |
Constructor Summary | |
---|---|
FilePathUtil()
|
Method Summary | |
---|---|
static boolean |
differ(hudson.FilePath filePath1,
hudson.FilePath filePath2)
Check if two files are equal. |
static hudson.FilePath |
existsOrNull(hudson.FilePath... filePaths)
Get the first existing file or directory. |
static boolean |
isDirectory(hudson.FilePath filePath)
Check if the provided path is a directory |
static hudson.FilePath |
isDirectoryOrNull(hudson.FilePath... filePaths)
Get the first existing directory. |
static boolean |
isFile(hudson.FilePath filePath)
Check if the provided path is a file |
static hudson.FilePath |
isFileOrNull(hudson.FilePath... filePaths)
Get the first existing file. |
static boolean |
isUnix(hudson.FilePath filePath)
Is this file located on UNIX? |
static boolean |
isWindows(hudson.FilePath filePath)
Is this file located on Windows? |
static List<hudson.FilePath> |
listSharedLibraries(hudson.FilePath filePath)
List shared libraries contained in this folder. |
static List<hudson.FilePath> |
listSharedLibraries(Python interpreter)
List the shared libraries of the provided interpreter. |
static String |
read(hudson.FilePath filePath,
String encoding)
Get the content of the provided file path. |
static hudson.FilePath |
synchronize(hudson.FilePath src,
hudson.FilePath dest)
Synchronize a file or all files in a directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilePathUtil()
Method Detail |
---|
public static boolean isWindows(hudson.FilePath filePath) throws IOException, InterruptedException
filePath
- The file to check
IOException
InterruptedException
public static boolean isUnix(hudson.FilePath filePath) throws IOException, InterruptedException
filePath
- The file to check
IOException
InterruptedException
public static String read(hudson.FilePath filePath, String encoding) throws IOException, InterruptedException
filePath
- The file pathencoding
- The encoding
IOException
InterruptedException
public static hudson.FilePath existsOrNull(hudson.FilePath... filePaths) throws IOException, InterruptedException
filePaths
- The list of files or directories to check
IOException
InterruptedException
public static hudson.FilePath isDirectoryOrNull(hudson.FilePath... filePaths) throws IOException, InterruptedException
filePaths
- The list of directories to check
IOException
InterruptedException
public static hudson.FilePath isFileOrNull(hudson.FilePath... filePaths) throws IOException, InterruptedException
filePaths
- The list of files to check
IOException
InterruptedException
public static boolean differ(hudson.FilePath filePath1, hudson.FilePath filePath2) throws IOException, InterruptedException
filePath1
- The first filefilePath2
- The second file
IOException
InterruptedException
public static boolean isFile(hudson.FilePath filePath) throws IOException, InterruptedException
filePath
- The file to check
IOException
InterruptedException
public static boolean isDirectory(hudson.FilePath filePath) throws IOException, InterruptedException
filePath
- The path to check
IOException
InterruptedException
public static hudson.FilePath synchronize(hudson.FilePath src, hudson.FilePath dest) throws IOException, InterruptedException
src
- The source file or directorydest
- The destination file or directory
IOException
InterruptedException
public static List<hudson.FilePath> listSharedLibraries(Python interpreter) throws IOException, InterruptedException
interpreter
- The interpreter
InterruptedException
IOException
public static List<hudson.FilePath> listSharedLibraries(hudson.FilePath filePath) throws IOException, InterruptedException
filePath
- The folder
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |