fstat(filename)

Overview

fstat returns information about the requested file: the type, size and the origin of the file.

Arguments

filename: string

The file you want to get information about

Returns

type: string

Whether the path is a file or folder

size: number

The size of the file (bytes)

origin: string

The origin of the file