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

Please take notice of the following notes…

(a) – Undocumented in prior Autodesk documentation

FunctionNotesExampleReturn Value
filelocatordim myfl as filelocator
dim myfl as filelocator("<path>","<mask>",<bool>,<bool>)
dim myfl as filelocator("C:\\", "*", True, True)
dim myfl as filelocator("C:\\", "*.itm", True, False)
dim myfl as filelocator("C:\\", "Pipe*", False, True)
<object>
scan(a)<fileloc>.scan("<path>","<mask>",<bool>,<bool>)
<fileloc>.scan("C:\\", "*", True, True)
<fileloc>.scan("C:\\", "*.itm", True, False)
<fileloc>.scan("C:\\", "Pipe*", False, True)
<object>