Filecatalog( isnt working as expected


#1

filecatalog(‘a folder path’) returns all the files in the folder except panx files.
i’ve tried it with several folders.

filecatalog(‘a folder path’, ‘.pandb’) and filecatalog(‘a folder path’, ‘*.pandb’) return nothing.

pretty sure this ins’t how its supposed to work.


#2

I may be wrong, but I think the reason is that Pan X databases are not just files. They are packages. You may have to provide additional options to the filecatalog( function.

You can use the listfiles( function. It does not seem to have issues with .pandb files.


#3

This is a known issue.


#4

thanks. didnt know about listfiles(.

it will work well (actually, better) for my current issue, but it does have a shortcoming in that it doesnt list folder contents.