Use file:list_dir/1 instead of file:list_dir_all/1 for R15.