Follow-up to #89.
The fix in #89 makes AbsolutePath.deleteRecursively no-op when the target path does not exist (previously Files.walk threw NoSuchFileException). The fix shipped without a regression test.
What to cover
deleteRecursively on a non-existent path → no exception, no-op.
deleteRecursively on an existing directory tree (nested files/dirs) → fully removed.
- (optional)
deleteRecursively on a single file → removed.
Notes
- Lives in
sls/src/org/scala/abusers/sls/paths.scala.
- Use a temp dir fixture; Weaver-Cats
SimpleIOSuite per repo conventions.
Follow-up to #89.
The fix in #89 makes
AbsolutePath.deleteRecursivelyno-op when the target path does not exist (previouslyFiles.walkthrewNoSuchFileException). The fix shipped without a regression test.What to cover
deleteRecursivelyon a non-existent path → no exception, no-op.deleteRecursivelyon an existing directory tree (nested files/dirs) → fully removed.deleteRecursivelyon a single file → removed.Notes
sls/src/org/scala/abusers/sls/paths.scala.SimpleIOSuiteper repo conventions.