All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalax.file.FileSystemPlugins.scala Maven / Gradle / Ivy

The newest version!
package scalax.file

import java.net.URI

/**
 *
 * User: jeichar
 * Date: Oct 2, 2010
 * Time: 9:31:09 PM
 */

object FileSystemPlugins {
  def lookup(uri:URI): Option[Path] = {
    uri.getScheme match {
      case "file" => Some(Path.fromString(uri.getRawPath))
      case "ramfs" => Some(scalax.file.ramfs.RamFileSystem(uri))
      case _ => None
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy