Interface ModuleFileTransactions.FileOps

Enclosing class:
ModuleFileTransactions

static interface ModuleFileTransactions.FileOps
How files are moved and deleted; a test substitutes a failing one.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    An atomic rename that never replaces an existing file, and a plain delete.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(Path path)
     
    default boolean
    exists(Path path)
    Whether a file exists, links not followed -- the existence checks of an apply.
    void
    move(Path from, Path to)
     
  • Field Details

  • Method Details

    • move

      void move(Path from, Path to) throws IOException
      Throws:
      IOException
    • delete

      void delete(Path path) throws IOException
      Throws:
      IOException
    • exists

      default boolean exists(Path path)
      Whether a file exists, links not followed -- the existence checks of an apply.
      Parameters:
      path - the file
      Returns:
      whether it exists