Skip to content

Commit

Permalink
Add missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborpongracz committed Aug 1, 2024
1 parent 98ac150 commit b045780
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fileutil/fileutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b045780

Please sign in to comment.