From b045780f3c2692a87eec69052e256e2dd0e2d2c0 Mon Sep 17 00:00:00 2001 From: Gabor Pongracz Date: Thu, 1 Aug 2024 12:48:34 +0200 Subject: [PATCH] Add missing comment --- fileutil/fileutil.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fileutil/fileutil.go b/fileutil/fileutil.go index d383cfd..6a27cb7 100644 --- a/fileutil/fileutil.go +++ b/fileutil/fileutil.go @@ -91,6 +91,7 @@ func (f fileManager) WriteBytes(path string, value []byte) error { return os.WriteFile(path, value, 0600) } +// FileSizeInBytes checks if the provided path exists and return with the file size (bytes) using os.Lstat. func (fileManager) FileSizeInBytes(pth string) (float64, error) { if pth == "" { return 0, errors.New("No path provided")