add api to list files with give prefix