stat

os.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

Attributes

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

Members list

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
posix.type

Value members

Concrete methods

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

Inherited methods

def andThen[A](g: StatInfo => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => Path): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1