diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2024-07-22 23:06:16 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2024-07-23 00:04:58 +0200 |
| commit | 09bc93ed756361d396890c389b01315cdb5e32fd (patch) | |
| tree | 3a2718a2b5a3584a489d009a532526239f6b45a5 /app/src/main/java/org | |
| parent | 42564c71cfb70c28831c662a3b6bf4084e079353 (diff) | |
Add initial code for samba implementation based on libsmb2
Diffstat (limited to 'app/src/main/java/org')
| -rw-r--r-- | app/src/main/java/org/the_jk/cleversync/io/TreeFactory.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/java/org/the_jk/cleversync/io/TreeFactory.kt b/app/src/main/java/org/the_jk/cleversync/io/TreeFactory.kt index 6df2c93..f162977 100644 --- a/app/src/main/java/org/the_jk/cleversync/io/TreeFactory.kt +++ b/app/src/main/java/org/the_jk/cleversync/io/TreeFactory.kt @@ -1,6 +1,7 @@ package org.the_jk.cleversync.io import org.the_jk.cleversync.local.LocalTreeFactory +import org.the_jk.cleversync.samba.SambaTreeFactory import java.nio.file.Path object TreeFactory { @@ -11,4 +12,12 @@ object TreeFactory { fun localTree(root: Path): Tree { return LocalTreeFactory.tree(root) } + + fun sambaModifiableTree(uri: String): Result<ModifiableTree> { + return SambaTreeFactory.modifiableTree(uri) + } + + fun sambaTree(uri: String): Result<Tree> { + return SambaTreeFactory.tree(uri) + } } |
