scan one dir; distribute files and dirs to different lists