Closed joshuaherrera closed 3 years ago
That change looks good, I just committed your suggestion.
Maybe we'll extend the
Filesystem
interface later and add a function likeLatestRecordDirPath
so we can move this filesystem-related logic into thefs
package.
Yes, I wasn't sure where the best place to put these helper functions would be, so I put them in the timetrace.go file. I like this idea better though.
This fix is contained in release 0.7.1.
Resolves issue #95 by checking that the latest directory contains at least 1 file.