Fs.dir_scan¶
dir_scan :: fn (dirpath: string, filter: DirScanFilterFn) (_0: InfoList, _1: Error) #inline
Scan dirpath directory and return list of information for every file system entry found on success. Otherwise return empty list and error. Use :ref:`Fs.info_list_delete to release list when there was no error reported by this function.
Optional filter funtion Fs.DirScanFilterFn can be used to filter scan results directly during scanning, it’s called for every found entry and only those for whose filter yealds true are added into the output list.
Declared in: fs.bl