de.sciss.lucre.ArtifactPlatform.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lucre-expr_2.12 Show documentation
Show all versions of lucre-expr_2.12 Show documentation
Extension of Scala-STM, adding optional durability layer, and providing API for confluent and reactive event layers
The newest version!
/*
* ArtifactPlatform.scala
* (Lucre 4)
*
* Copyright (c) 2009-2024 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.lucre
import java.io.File
import java.net.URI
trait ArtifactPlatform {
private[sciss] def fileToURI(path: String): URI = if (path.isEmpty) Artifact.Value.empty else {
val f = new File(path)
f.toURI
}
}