size

os.size
object size extends Path => Long

Gets the size of the given file or folder

Throws an exception if the file or folder does not exist

When called on folders, returns the size of the folder metadata (i.e. the list of children names), and not the size of the folder's recursive contents. Use os.walk if you want to sum up the total size of a directory tree.

Attributes

Graph
Supertypes
trait Path => Long
class Object
trait Matchable
class Any
Self type
size.type

Members list

Value members

Concrete methods

def apply(p: Path): Long

Inherited methods

def andThen[A](g: Long => 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