Skip to content

Commit

Permalink
Revert "AzureFileSystem is-a FileSystem and has-a isExpired"
Browse files Browse the repository at this point in the history
This reverts commit 1225057.
  • Loading branch information
aednichols committed Aug 18, 2023
1 parent 1225057 commit c2df9e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import scala.util.{Failure, Success, Try}
// We encapsulate this functionality here so that we can easily mock it out, to allow for testing without
// actually connecting to Blob storage.
case class FileSystemAPI(private val provider: FileSystemProvider = new AzureFileSystemProvider()) {
def getFileSystem(uri: URI): Try[AzureFileSystem] = Try(provider.getFileSystem(uri).asInstanceOf[AzureFileSystem])
def getFileSystem(uri: URI): Try[FileSystem] = Try(provider.getFileSystem(uri).asInstanceOf[AzureFileSystem])
def newFileSystem(uri: URI, config: Map[String, Object]): FileSystem = provider.newFileSystem(uri, config.asJava)
def closeFileSystem(uri: URI): Option[Unit] = getFileSystem(uri).toOption.map(_.close)
}
Expand Down

0 comments on commit c2df9e5

Please sign in to comment.