MCPcopy Create free account
hub / github.com/FastLED/FastLED / _write_timestamp_file

Method _write_timestamp_file

ci/fingerprint/core.py:677–690  ·  view source on GitHub ↗

Write timestamp file when changes are detected.

(self)

Source from the content-addressed store, hash-verified

675 return None
676
677 def _write_timestamp_file(self) -> None:
678 """Write timestamp file when changes are detected."""
679 if self.timestamp_file is None:
680 return
681 try:
682 self.timestamp_file.parent.mkdir(parents=True, exist_ok=True)
683 timestamp_data = {
684 "timestamp": time.time(),
685 "subpath": self.subpath,
686 }
687 with open(self.timestamp_file, "w") as f:
688 json.dump(timestamp_data, f, indent=2)
689 except OSError:
690 pass

Callers 1

check_needs_updateMethod · 0.95

Calls 2

timeMethod · 0.80
dumpMethod · 0.45

Tested by

no test coverage detected