NewBuckets() returns error after a directory check.