public class FileServiceImpl extends Object implements FileService
| Constructor and Description |
|---|
FileServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
mkdirs(File file) |
void |
rmdirs(File from)
Removes directories.
|
void |
rmdirs(File from,
File to)
Removes directories.
|
public void mkdirs(File file) throws IOException
mkdirs in interface FileServiceIOExceptionpublic void rmdirs(File from, File to) throws IOException
FileServicefrom and working upwards removes directories if, and only if, empty
until to is reached.rmdirs in interface FileServicefrom - the directory path to be removedto - the sub-directory to preserve. Maybe nullIOException - when the directories cannot be removedpublic void rmdirs(File from) throws IOException
FileServicefrom and working upwards removes directories if, and only if, empty.rmdirs in interface FileServicefrom - the directory path to be removedIOException - when the directories cannot be removedCopyright © 2021 Paul Warren. All rights reserved.