Skip to content

Instantly share code, notes, and snippets.

@Kalyan-D
Kalyan-D / GSAccess.scala
Created May 13, 2021 16:37 — forked from kseada/GSAccess.scala
Scala code for accessing Google Storage using JetS3t. Add repository to sbt resolvers: "jets3t" at "http://www.jets3t.org/maven2", and library to sbt libraryDependencies: , "net.java.dev.jets3t" % "jets3t" % "0.9.0".
import org.jets3t.service.security.GSCredentials
import org.jets3t.service.impl.rest.httpclient.GoogleStorageService
import org.jets3t.service.model.GSObject
import org.jets3t.service.ServiceException
import java.io.File
import java.io.BufferedReader
import java.io.InputStreamReader
val BUCKET_NAME = "###"
val FILE_PATH = "###"