FileUtils

dotty.tools.dotc.classpath.FileUtils$
object FileUtils

Common methods related to Java files and abstract files used in the context of classpath

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def dirPath(forPackage: String): String
def dirPathInJar(forPackage: String): String
def endsClass(fileName: String): Boolean
def endsJava(fileName: String): Boolean
def endsScala(fileName: String): Boolean

Extensions

Extensions

extension (file: File)
extension (file: AbstractFile)
def toURLs(default: => Seq[URL]): Seq[URL]

Safe method returning a sequence containing one URL representing this file, when underlying file exists, and returning given default value in other case

Safe method returning a sequence containing one URL representing this file, when underlying file exists, and returning given default value in other case

Attributes