SNRK-48: Remove nullable types
This commit is contained in:
parent
7127d3582d
commit
a9c0cc10a6
@ -3,13 +3,13 @@ package space.kscience.snark.storage
|
|||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
|
||||||
public interface Directory : AutoCloseable {
|
public interface Directory : AutoCloseable {
|
||||||
public suspend fun get(filename: String): FileReader?
|
public suspend fun get(filename: String): FileReader
|
||||||
|
|
||||||
public suspend fun create(filename: String, ignoreIfExists: Boolean = false)
|
public suspend fun create(filename: String, ignoreIfExists: Boolean = false)
|
||||||
public suspend fun put(filename: String): FileWriter?
|
public suspend fun put(filename: String): FileWriter
|
||||||
|
|
||||||
public suspend fun getSubdir(path: Path): Directory?
|
public suspend fun getSubdir(path: Path): Directory
|
||||||
public suspend fun createSubdir(dirname: String, ignoreIfExists: Boolean = false): Directory?
|
public suspend fun createSubdir(dirname: String, ignoreIfExists: Boolean = false): Directory
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface FileReader : AutoCloseable {
|
public interface FileReader : AutoCloseable {
|
||||||
|
Loading…
Reference in New Issue
Block a user