stat

object stat extends Path => StatInfo

Reads in the basic filesystem metadata for the given file. By default follows symbolic links to read the metadata of whatever the link is pointing at; set followLinks = false to disable that and instead read the metadata of the symbolic link itself.

Throws an exception if the file or folder does not exist

trait Path => StatInfo
class Object
trait Matchable
class Any
stat.type

Type members

Classlikes

object posix

Reads POSIX metadata for the given file: ownership and permissions data

Reads POSIX metadata for the given file: ownership and permissions data

Value members

Concrete methods

def apply(p: Path, followLinks: Boolean): StatInfo

Inherited methods

def andThen[A](g: StatInfo => A): Path => A
Inherited from:
Function1
def compose[A](g: A => Path): A => StatInfo
Inherited from:
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1