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
def endsScalaOrJava(fileName: String): Boolean
def mayBeValidPackage(dirName: String): Boolean
def mkFileFilter(f: File => Boolean): FileFilter
def stripClassExtension(fileName: String): String
def stripJavaExtension(fileName: String): String
def stripSourceExtension(fileName: String): String

Extensions

Extensions

extension (file: File)
def isClass: Boolean
def isPackage: Boolean
extension (file: AbstractFile)
def isClass: Boolean
def isJarOrZip: Boolean
def isPackage: Boolean
def isScalaOrJavaSource: Boolean
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