public class OKW_FileHelper extends Object
| Constructor and Description |
|---|
OKW_FileHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertDirectorySeperator(String fpsPath)
\~german
Konvertiert für das Host-Betriebsystem den Path Separator.
|
static void |
copy(String fpsSource,
String fpsDestination,
Boolean copySubDirs) |
static void |
copyDirectory(String fpsSourceFolder,
String fpsDestinationFolder) |
static Boolean |
createEmptyDirectory(String fpsPath)
\~german
Erzeugt ein leeres Verzechniss mit dem angegebenen Pfad.
|
static boolean |
createFile(String fpsPaFiNa)
\~german
\brief
Legt eine Leere Datei an.
|
static void |
deleteDirectory(String Path)
\~german
Löschent rekursiv alle Dateien und Unterverzeichnisse und das gegebenen
Verzeichniss selbst.
|
static Boolean |
deleteFile(String fpsPaFiNa)
\~german
Löscht die gegebene Datei _fpsPaFiNa_.
|
static void |
deleteFiles(String fpsPaFiNa)
\~german
Löscht alle Dateien des gegebenen Musters im gegebenen Verzeichniss Rekursive.
|
static void |
DirectoryCreate(String PATH)
\~german
Erstellt ein Verzeichnis, einschließlich aller notwendigen, aber nicht vorhandenen übergeordneten Verzeichnisse.
|
static Boolean |
directoryExists(String fpsPaFiNa)
\~german
Prüft, ob die gegebene _fpsPaFiNa_ Datei existiert.
|
static Boolean |
fileExists(String fpsPaFiNa)
\~german
\brief Prüft, ob die gegebene _fpsPaFiNa_ Datei existiert.
|
static Boolean |
isDirectoryEmpty(String PATH)
\~german
Diese Methode prüft, ob das gegebene Verzeichniss existiert und leer ist.
|
static Boolean |
isFile(String PATH)
\~german
Prüft, ob der gegebene PATH eine Datei ist.
|
static ArrayList<File> |
ListFiles(String fpsPath) |
static void |
move(String fpsPaFiNaSource,
String fpsPaFiNaDestination)
\~german
Verschiebt die gegeben Quell-Datei zu einer neuen Ziel-Datei.
|
static boolean |
moveDirectory(String fpsPaNaSource,
String fpsPaNaDestination)
\~german
\brief
Verzeichniss verschieben löschen des gegebenen Verzeichnisses..
|
public static Boolean createEmptyDirectory(String fpsPath)
fpsPath - Pfad des Verzeichnisses, welches Angelegt werden soll.fpsPath - Path of the directory which is to be created.public static void deleteDirectory(String Path)
public static Boolean directoryExists(String fpsPaFiNa)
public static boolean moveDirectory(String fpsPaNaSource, String fpsPaNaDestination) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static void copy(String fpsSource, String fpsDestination, Boolean copySubDirs) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static void deleteFiles(String fpsPaFiNa)
public static Boolean deleteFile(String fpsPaFiNa)
public static Boolean fileExists(String fpsPaFiNa)
public static Boolean isFile(String PATH)
public static void move(String fpsPaFiNaSource, String fpsPaFiNaDestination) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static boolean createFile(String fpsPaFiNa) throws IOException
IOExceptionpublic static Boolean isDirectoryEmpty(String PATH)
PATH - Das zu prüfende Verzeichniss.PATH - The directory to be checked.OKW.Exceptions.OKWDirectoryDoesNotExistsException - wird ausgelöst, wenn de gegeben Pfad nicht auf ein existierendesVerzeichiss zeigt.
\~english
This method checks whether the given directory exists and is empty.
This means that the directory contains:
-# no files and
-# no subdirectoriesOKW.Exceptions.OKWDirectoryDoesNotExistsException - is raised if the given path does not point to an existing directory.
\~public static String convertDirectorySeperator(String fpsPath)
fpsPath - Pfad, der zu konvertieren ist.fpsPath - Path to convert.public static void DirectoryCreate(String PATH) throws IOException
PATH - - Verzeichnis, das erstellt werden soll, darf nicht Null sein.
\~english
Creates a directory, including any necessary but nonexistent parent directories.
If a file already exists with specified name but it is not a directory then an IOException is thrown.
If the directory cannot be created (or does not already exist) then an IOException is thrown.PATH - - directory to create, must not be null
\~IOException - \date 2019-12-01Copyright © 2021 OpenKeyWord. All rights reserved.