Package velox.api.layer1.common
Class DirectoryResolver
java.lang.Object
velox.api.layer1.common.DirectoryResolver
This class contains access methods to Bookmap folder structure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathgetBookmapDirectoryByName(String folderName) Allows to get subfloder in Bookmap directory.static PathAllows to access Bookmap root directory On windows: C:\Bookmap by default, may be changed during installation On mac: ~/Library/Application Support/Bookmap On linux: ~/.bookmapstatic PathConfig directory is where all configuration files for Bookmap are stored.static Pathstatic Pathstatic PathThis directory contains all the downloaded feeds and orders from web when opening bookmap with--urloption.static PathThis directory contains all the downloaded workspace files from web when opening bookmap with--urloption.static Pathstatic Pathstatic Pathstatic Pathstatic Pathstatic Pathstatic PathDirectory where JVM crash logs are stored.static Pathstatic Pathstatic Pathstatic Pathstatic voidsetPermissions(Path path, PosixFilePermission... permissions) Set permissions for a file or directory.
-
Constructor Details
-
DirectoryResolver
public DirectoryResolver()
-
-
Method Details
-
getBookmapRootDirectory
Allows to access Bookmap root directory On windows: C:\Bookmap by default, may be changed during installation On mac: ~/Library/Application Support/Bookmap On linux: ~/.bookmap- Returns:
- Bookmap root directory
-
getBookmapDirectoryByName
Allows to get subfloder in Bookmap directory. Can be used to create custom folders or files. Example: { Path myFolder = DirectoryResolver.getBookmapDirectoryByName("MyFolder"); Files.createDirectories(myFolder); myFolder.resolve("myFile").toFile().createNewFile(); }- Parameters:
folderName- Name of subfolder under Bookmap root directory- Returns:
- Path representing subfolder with name folderName under Bookmap root directory
-
getConfigDirectory
Config directory is where all configuration files for Bookmap are stored. Also this is working directory for Bookmap java process.- Returns:
- Path representing Config directory under Bookmap root directory
-
getDownloadedWorkspacesDirectory
This directory contains all the downloaded workspace files from web when opening bookmap with--urloption. -
getLogsDirectory
-
getFeedsDirectory
-
getDownloadedFeedsDirectory
This directory contains all the downloaded feeds and orders from web when opening bookmap with--urloption. -
getErrorReportsDirectory
-
getScreenshotsDirectory
-
getDiagnosticLogsDirectory
-
getSoundsDirectory
-
getLayer0ApiModulesDirectory
-
getLayer1ApiModulesDirectory
-
getLocalDataCacheDirectory
-
getRemoteDataCacheDirectory
-
getDataLibraryDirectory
-
getTemporaryDirectory
-
getNativeErrorLogsDirectory
Directory where JVM crash logs are stored. By default, JVM stores crash logs to the process working directory. It's is equal to the Config directory on Windows and Linux. On Mac it could be different, but on crash we execute script to move crash logs to Config directory. So it's always equal to the Config directory within the current implementation.- Returns:
- Path representing directory where JVM crash logs are configured.
-
setPermissions
Set permissions for a file or directory.- Parameters:
path- represents a path in a filesystem to directory or file
-