Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Better handling of os.Stat() errors (#1173)
Meisam901c72c7f11e
diff --git a/utils/utils.go b/utils/utils.goindex 6d73bcc2a2..c918f5c464 100644--- a/utils/utils.go+++ b/utils/utils.go@@ -22,13 +22,14 @@ import (// DoesFileExists checks if the file exists.func DoesFileExists(name string) bool {- if _, err := os.Stat(name); err != nil {- if os.IsNotExist(err) {- return false- }+ if _, err := os.Stat(name); err == nil {+ return true+ } else if os.IsNotExist(err) {+ return false+ } else {+ log.Errorln(err)+ return false}-- return true}// GetRelativePathFromAbsolutePath gets the relative path from the provided absolute path.