Failed download when specify a directory using thread.