public class PathUtils
extends java.lang.Object
| Constructor and Description |
|---|
PathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkFolder(java.io.File file)
prüft ob der Ordner existiert und legt ihn an falls nicht
|
static java.nio.file.Path |
getCurrentLocation()
gibt den Ordner zurück, in dem sich die aktuell ausgeführte jar befindet
|
static java.nio.file.Path |
getOSindependentPath()
gibt den Pfad zum "Appdata"-Ordner des jeweiligen aktuellen an
|
static void |
selectFileInExplorer(java.lang.String path)
öffnet ein Explorerfenster und selektiert die angegebene Datei
|
public static void checkFolder(java.io.File file)
file - public static java.nio.file.Path getOSindependentPath()
public static java.nio.file.Path getCurrentLocation()
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic static void selectFileInExplorer(java.lang.String path)
throws java.io.IOException
path - - Pfad zur Dateijava.io.IOException