CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
Return directly if name does not exist (#871)
link3611ec7d099c
diff --git a/pkg/utils/file/file.go b/pkg/utils/file/file.goindex 1ce50d1..a14ffb6 100644--- a/pkg/utils/file/file.go+++ b/pkg/utils/file/file.go@@ -581,7 +581,7 @@ func ReadLine(lineNumber int, path string) string {func NameAccumulation(name string, dir string) string {path := filepath.Join(dir, name)if _, err := os.Stat(path); os.IsNotExist(err) {- return path+ return name}base := namestrings.Split(base, "_")