List all filenames in documents folder

Hello,

I am trying to write a simple script that copies all the txt and png files from documents to dropbox.assets. I havent found a way to find all the existing filenames in documents yet, does this function exist?

See the assetList command in the reference.

Thanks you came and saved the day once again