Class FileServiceImpl

java.lang.Object
org.springframework.content.commons.utils.FileServiceImpl
All Implemented Interfaces:
FileService

public class FileServiceImpl extends Object implements FileService
  • Constructor Details

    • FileServiceImpl

      public FileServiceImpl()
  • Method Details

    • mkdirs

      public void mkdirs(File file) throws IOException
      Specified by:
      mkdirs in interface FileService
      Throws:
      IOException
    • rmdirs

      public void rmdirs(File from, File to) throws IOException
      Description copied from interface: FileService
      Removes directories. Starting at the leaf of from and working upwards removes directories if, and only if, empty until to is reached.
      Specified by:
      rmdirs in interface FileService
      Parameters:
      from - the directory path to be removed
      to - the sub-directory to preserve. Maybe null
      Throws:
      IOException - when the directories cannot be removed
    • rmdirs

      public void rmdirs(File from) throws IOException
      Description copied from interface: FileService
      Removes directories. Starting at the leaf of from and working upwards removes directories if, and only if, empty.
      Specified by:
      rmdirs in interface FileService
      Parameters:
      from - the directory path to be removed
      Throws:
      IOException - when the directories cannot be removed