Object -
file
:
FileInfo
FileInfo record contains metadata information of a file. This record is returned by getFileInfo function is os module.
Constructor
__init
(string name, int size, Time modifiedTime, boolean dir, string path)
- name string
-
Name of the file
- size int
-
Size of the file (in bytes)
- modifiedTime Time
-
The last modified time of the file
- dir boolean
-
Whether the file is a directory or not
- path string
-
Absolute path of the file
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.
Returns the last-modified time of the file.
-
Return Type
(Time) Last-modified time of the file
Returns whether the file is a directory or not.
-
Return Type
(boolean) File is a directory or not