summaryrefslogtreecommitdiff
path: root/libs/local/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2024-08-22 00:08:33 +0200
committerJoel Klinghed <the_jk@spawned.biz>2024-08-22 00:08:33 +0200
commitd41f82b99e405e1b6ef2e75d32efa31d91893824 (patch)
tree199df84265f889642f8c9d19a9e94a3ea4de6dbd /libs/local/src
parent9b7f943969e17273ac9bd78bb238ffbea3865993 (diff)
Add AutoClosable to Tree interface
Some backends have resources to free, such as the SambaTree.
Diffstat (limited to 'libs/local/src')
-rw-r--r--libs/local/src/main/java/org/the_jk/cleversync/io/local/PathTree.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/local/src/main/java/org/the_jk/cleversync/io/local/PathTree.kt b/libs/local/src/main/java/org/the_jk/cleversync/io/local/PathTree.kt
index 23442a1..409701c 100644
--- a/libs/local/src/main/java/org/the_jk/cleversync/io/local/PathTree.kt
+++ b/libs/local/src/main/java/org/the_jk/cleversync/io/local/PathTree.kt
@@ -7,4 +7,5 @@ import java.nio.file.Path
internal class PathTree(root: Path) : PathDirectory(root, PathWatcher()), ModifiableTree {
override fun description(resources: Resources) = resources.getString(R.string.local_directory)
+ override fun close() = Unit
}