Class FileServiceImpl
java.lang.Object
org.springframework.content.commons.utils.FileServiceImpl
- All Implemented Interfaces:
FileService
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FileServiceImpl
public FileServiceImpl()
-
-
Method Details
-
mkdirs
- Specified by:
mkdirs
in interfaceFileService
- Throws:
IOException
-
rmdirs
Description copied from interface:FileService
Removes directories. Starting at the leaf offrom
and working upwards removes directories if, and only if, empty untilto
is reached.- Specified by:
rmdirs
in interfaceFileService
- Parameters:
from
- the directory path to be removedto
- the sub-directory to preserve. Maybe null- Throws:
IOException
- when the directories cannot be removed
-
rmdirs
Description copied from interface:FileService
Removes directories. Starting at the leaf offrom
and working upwards removes directories if, and only if, empty.- Specified by:
rmdirs
in interfaceFileService
- Parameters:
from
- the directory path to be removed- Throws:
IOException
- when the directories cannot be removed
-