refactor common directory walk code into s3impl/weedS3/weedutils