fm.liveswitch.PathUtility Class Reference

Static Public Member Functions

static String getTempPath ()
 Returns the temporary directory location from the system. More...
 
static String getAbsolutePath (String path)
 Get the absolute file path of the given directory or file. More...
 
static String combinePaths (String path1, String path2)
 Combines two strings into a filesystem path. More...
 
static String combinePaths (String[] paths)
 Combines the array of strings into a filesystem path. More...
 
static void delete (String path) throws java.io.IOException
 Delete a file. More...
 
static void createSymlink (String destinationPath, String linkPath)
 Create a symlink. More...
 

Member Function Documentation

◆ combinePaths() [1/2]

static String fm.liveswitch.PathUtility.combinePaths ( String  path1,
String  path2 
)
static

Combines two strings into a filesystem path.

◆ combinePaths() [2/2]

static String fm.liveswitch.PathUtility.combinePaths ( String[]  paths)
static

Combines the array of strings into a filesystem path.

◆ createSymlink()

static void fm.liveswitch.PathUtility.createSymlink ( String  destinationPath,
String  linkPath 
)
static

Create a symlink.

◆ delete()

static void fm.liveswitch.PathUtility.delete ( String  path) throws java.io.IOException
static

Delete a file.

◆ getAbsolutePath()

static String fm.liveswitch.PathUtility.getAbsolutePath ( String  path)
static

Get the absolute file path of the given directory or file.

◆ getTempPath()

static String fm.liveswitch.PathUtility.getTempPath ( )
static

Returns the temporary directory location from the system.