Merge remote-tracking branch 'origin/main' into feature/SNRK-71/document-builder-implementation
This commit is contained in:
commit
eda376d51d
@ -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