Class - file : FileInfo

FileInfo record contains metadata information of a file. This record is returned by getFileInfo function is os module.

Methods

Returns the file name.

Returns the file size.

Returns the last-modified time of the file.

Returns whether the file is a directory or not.

Returns the absolute file path.

getName

()

returns string
Isolated Function

Returns the file name.

  • Return Type

    (string)
  • the file name

getSize

()

returns int
Isolated Function

Returns the file size.

  • Return Type

    (int)
  • the file size

getLastModifiedTime

()

returns Time
Isolated Function

Returns the last-modified time of the file.

  • Return Type

    (Time)
  • Last-modified time of the file

isDir

()

returns boolean
Isolated Function

Returns whether the file is a directory or not.

  • Return Type

    (boolean)
  • File is a directory or not

getPath

()

returns string
Isolated Function

Returns the absolute file path.

  • Return Type

    (string)
  • The file path