de.sciss.asyncfile.DesktopFileSystemProvider.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asyncfile_3.0.0-RC2 Show documentation
Show all versions of asyncfile_3.0.0-RC2 Show documentation
A library to read and write files asynchronously on the JVM and JS
The newest version!
/*
* DesktopFileSystemProvider.scala
* (AsyncFile)
*
* Copyright (c) 2020-2021 Hanns Holger Rutz. All rights reserved.
*
* This software is published under the GNU Affero General Public License v3+
*
*
* For further information, please contact Hanns Holger Rutz at
* [email protected]
*/
package de.sciss.asyncfile
import scala.concurrent.{ExecutionContext, Future}
object DesktopFileSystemProvider extends AsyncFileSystemProvider {
final val scheme = "file"
final val name = "Desktop File System"
def obtain()(implicit executionContext: ExecutionContext): Future[AsyncFileSystem] = {
val fs = new DesktopFileSystem()
Future.successful(fs)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy