The following are the File Locator object properties for COD scripts.

ScopePropertyValue
Read<fileloc>.file[<index>]<filename>
Read<fileloc>.filecount<integer>
Read<fileloc>.folder[<index>]<foldername>
Read<fileloc>.foldercount<integer>
Read/Write<fileloc>.path<path>