Item objects represent a file or a folder on the file system, whether it exists or not, based on its path.
Item objects, you can:
root/home/here or scriptFile/scriptFolder globals
file() or folder() on a Folder
cli method, using a corresponding type definition
To check whether a given Item object is a File or a Folder, you can use the instanceof operator.