Interface FileService

All Known Implementing Classes:
FileServiceImpl

public interface FileService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    mkdirs(File file)
     
    void
    rmdirs(File from)
    Removes directories.
    void
    rmdirs(File from, File to)
    Removes directories.
  • Method Details

    • mkdirs

      void mkdirs(File file) throws IOException
      Throws:
      IOException
    • rmdirs

      void rmdirs(File from, File to) throws IOException
      Removes directories. Starting at the leaf of from and working upwards removes directories if, and only if, empty until to is reached.
      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

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