Use modtimes instead of time formatting/parsing for the last sync sentinel
since you're pre-calculating the location of lastsync as a Path
, in 2.0 you can just replace "with open w" with lastsync_location.touch()
and "with open r" with last_sync = arrow.get(lastsync_location().stat().st_mtime