FileUtils

object FileUtils

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

class Object
trait Matchable
class Any

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

Extensions

Extensions

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

extension (file: File)