fix input a file path to listDir