diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2024-08-22 00:08:33 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2024-08-22 00:08:33 +0200 |
| commit | d41f82b99e405e1b6ef2e75d32efa31d91893824 (patch) | |
| tree | 199df84265f889642f8c9d19a9e94a3ea4de6dbd /libs/local/src | |
| parent | 9b7f943969e17273ac9bd78bb238ffbea3865993 (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.kt | 1 |
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 } |
