SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
avoid unnecessary user home checking
Chris Lu72b0d9d8c4bc
diff --git a/weed/util/file_util.go b/weed/util/file_util.goindex 70135180d8..f83f80265a 100644--- a/weed/util/file_util.go+++ b/weed/util/file_util.go@@ -69,6 +69,10 @@ func CheckFile(filename string) (exists, canRead, canWrite bool, modTime time.Tifunc ResolvePath(path string) string {+ if !strings.Contains(path, "~") {+ return path+ }+usr, _ := user.Current()dir := usr.HomeDir