Revert "add file list function"

This reverts commit 4d402f989444b501e0c079af4d536c99c0c25a78.