public class FileUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FileUtil.FileAction |
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getFileFromFQN(File rootDirectory,
String fqn)
Obtain a file fro the given
rootDirectory, applying the fqn. |
static File |
getFileFromPaths(File rootDirectory,
String... paths)
Obtain a file from the given
rootDirectory, applying given paths. |
static boolean |
walkAfter(File f,
FileUtil.FileAction fileAction)
Permet de faire une action avant le parcours des fichiers, c-a-d que
l'on fera l'action sur les fichiers contenu dans un répertoire
après l'action sur le répertoire lui même.
|
public static boolean walkAfter(File f, FileUtil.FileAction fileAction)
f - le fichier ou répertoire à partir duquel il faut commencerfileAction - l'action à effectuer sur chaque fichierpublic static File getFileFromPaths(File rootDirectory, String... paths)
rootDirectory, applying given paths.
For example with paths = a, b and c, then result is :
root/a/b/c
rootDirectory - the root directorypaths - paths to applypublic static File getFileFromFQN(File rootDirectory, String fqn)
rootDirectory, applying the fqn.
For example with fqn = a.b.c, the result is :
root/a/b/c
rootDirectory - the root directoryfqn - fqn of searched fileCopyright © 2008–2020 Ultreia.io. All rights reserved.