allow getBucket to accept a directory to list, only list files within a specified directory