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
FileUtils.type

Members list

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
def endsScalaOrJava(fileName: String): Boolean
def stripJavaExtension(fileName: String): String

Extensions

Extensions

extension (file: AbstractFile)(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

extension (file: File)(file: File)