Class: CFileInfo

codemelted.CFileInfo(filename, isDirectory, isFile, isSymLink, size)

Identifies file information based on a codemelted_disk.ls call.

Constructor

new CFileInfo(filename, isDirectory, isFile, isSymLink, size)

Constructor for the class.
Parameters:
Name Type Description
filename string The filename to include full path.
isDirectory boolean true if directory, false otherwise.
isFile boolean true if file, false otherwise.
isSymLink boolean true if symbolic link, false otherwise.
size number Size of the file in bytes on disk.
Source:

Members

(readonly) filename :string

The name of the file on disk.
Type:
  • string
Source:

(readonly) isDirectory :boolean

Is a directory or not.
Type:
  • boolean
Source:

(readonly) isFile :boolean

Is a file or not.
Type:
  • boolean
Source:
If symbolic link or not.
Type:
  • boolean
Source:

(readonly) size :number

Size of file on disk.
Type:
  • number
Source: