X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/5c14e4c916d76ce35ee2b07bf832d5f3b6118260..dd7aadfa4e0b3f0274a5dd86fd5ebf73ad80b2d2:/hotline/files.go diff --git a/hotline/files.go b/hotline/files.go index 42e25db..e77f631 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -56,6 +56,9 @@ func getFileNameList(filePath string) (fields []Field, err error) { } rFile, err := os.Stat(filePath + "/" + resolvedPath) + if errors.Is(err, os.ErrNotExist) { + continue + } if err != nil { return fields, err } @@ -180,7 +183,7 @@ func effectiveFile(filePath string) (*os.File, error) { } if errors.Is(err, fs.ErrNotExist) { - file, err = os.OpenFile(filePath+incompleteFileSuffix, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644) + file, err = os.OpenFile(filePath+incompleteFileSuffix, os.O_APPEND|os.O_WRONLY, 0644) if err != nil { return nil, err }