Skip to content

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.

promptive error message

Chris Lu030dde227a9b
diff --git a/weed-fs/src/cmd/weed/export.go b/weed-fs/src/cmd/weed/export.go
index ae9f5f212f..27c353b28f 100644
--- a/weed-fs/src/cmd/weed/export.go
+++ b/weed-fs/src/cmd/weed/export.go
@@ -40,6 +40,10 @@ func runExport(cmd *Command, args []string) bool {
return false
}
+ if *dest!="" && !strings.HasSuffix(*dest, ".tar") {
+ fmt.Println("the output file", *dest, "should ends with .tar")
+ return false
+ }
var err error
if strings.HasSuffix(*dest, ".tar") {
var fh *os.File