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