Package com.ultikits.ultitools.utils
Interface ModuleFileTransactions.FileOps
- Enclosing class:
ModuleFileTransactions
static interface ModuleFileTransactions.FileOps
How files are moved and deleted; a test substitutes a failing one.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModuleFileTransactions.FileOpsAn atomic rename that never replaces an existing file, and a plain delete. -
Method Summary
-
Field Details
-
DEFAULT
An atomic rename that never replaces an existing file, and a plain delete. A rename across file systems throwsAtomicMoveNotSupportedException, which the apply reports as such; it is never replaced by a copy.
-
-
Method Details
-
move
- Throws:
IOException
-
delete
- Throws:
IOException
-
exists
Whether a file exists, links not followed -- the existence checks of an apply.- Parameters:
path- the file- Returns:
- whether it exists
-