made sure each file closed after stating them

This commit is contained in:
Wyatt J. Miller 2019-09-28 01:07:33 -04:00
parent 9a090ca397
commit c78f6aa535

View File

@ -14,6 +14,8 @@ func timeToString(currentTime time.Time) string {
func osfileToSting(currentOsFile *os.File) string {
file, err := os.Open(currentOsFile.Name())
defer file.Close()
fileinfo, err := file.Stat()
if err != nil {