public final class FileSystemUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<File> |
getFiles(String strRoot,
String strDirectoryRelativePath)
Returns the files of a directory, alphabetically ordered.
|
static String |
getMIMEType(String strFilename)
Return the mimetype of the file depending of his extension and the mime.types file
|
static List<File> |
getSubDirectories(String strRoot,
String strDirectoryRelativePath)
Returns the sub-directories of a directory.
|
public static List<File> getSubDirectories(String strRoot, String strDirectoryRelativePath) throws DirectoryNotFoundException
strRoot
- the root directory.strDirectoryRelativePath
- the parent directory.DirectoryNotFoundException
- if the directory does not exist.public static List<File> getFiles(String strRoot, String strDirectoryRelativePath) throws DirectoryNotFoundException
strRoot
- The root directorystrDirectoryRelativePath
- The directory's path relative to the root directory.DirectoryNotFoundException
- if the directory does not exist.Copyright © 2020 City of Paris. All rights reserved.