SNRK-68: Implement missed
This commit is contained in:
parent
4441172ef7
commit
203aa52efe
@ -25,6 +25,10 @@ internal class S3Root(private val client: S3Client) : Directory {
|
||||
throw NoSuchFileException(Path(filename).toFile())
|
||||
}
|
||||
|
||||
override suspend fun get(filename: Path): FileReader {
|
||||
throw NoSuchFileException(filename.toFile())
|
||||
}
|
||||
|
||||
override suspend fun create(filename: String, ignoreIfExists: Boolean) {
|
||||
throw NoSuchFileException(Path(filename).toFile())
|
||||
}
|
||||
@ -33,6 +37,10 @@ internal class S3Root(private val client: S3Client) : Directory {
|
||||
throw NoSuchFileException(Path(filename).toFile())
|
||||
}
|
||||
|
||||
override suspend fun put(filename: Path): FileWriter {
|
||||
throw NoSuchFileException(filename.toFile())
|
||||
}
|
||||
|
||||
override suspend fun getSubdir(path: Path): Directory = try {
|
||||
val (bucketName, filePath) = splitPathIntoBucketAndPath(path)
|
||||
client.headBucket {
|
||||
@ -53,6 +61,9 @@ internal class S3Root(private val client: S3Client) : Directory {
|
||||
throw AccessDeniedException(Path(dirname).toFile(), reason = ex.message)
|
||||
}
|
||||
|
||||
override val path: Path
|
||||
get() = Path("")
|
||||
|
||||
override fun close() {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user