public class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getFile(String path,
Configuration configuration)
Retrieves the
File corresponding to the provided path. |
static File |
getXatkitDirectory()
Returns the Xatkit installation directory.
|
public static File getFile(String path, Configuration configuration)
File corresponding to the provided path.
This method supports absolute and relative paths. Relative path are resolved against the configuration
directory (see XatkitCore.CONFIGURATION_FOLDER_PATH_KEY). If this directory is not specified then the
execution directory is used to resolve relative paths.
path - the path of the File to retrieveconfiguration - the Xatkit ConfigurationFilepublic static File getXatkitDirectory() throws FileNotFoundException
This method looks for the directory location stored in the XATKIT environment variable. If the
directory does not exist a FileNotFoundException is thrown.
XATKIT environment variable can be set following this tutorial: https://github
.com/xatkit-bot-platform/xatkit-releases/wiki/Installation.
FileNotFoundException - if the Xatkit installation directory does not existCopyright © 2020 SOM Research Lab. All rights reserved.