MCPcopy Create free account
hub / github.com/acking-you/static_flow / poster_cache_paths

Function poster_cache_paths

crates/media-service/src/cache.rs:103–111  ·  view source on GitHub ↗
(cache_root: &Path, cache_key: &str)

Source from the content-addressed store, hash-verified

101}
102
103pub fn poster_cache_paths(cache_root: &Path, cache_key: &str) -> PosterCachePaths {
104 let dir = cache_root.join(cache_key);
105 PosterCachePaths {
106 image: dir.join("poster.jpg"),
107 ready_marker: dir.join(".ready"),
108 error_marker: dir.join(".error.txt"),
109 dir,
110 }
111}
112
113pub async fn source_modified_at_ms(path: &Path) -> Result<i64> {
114 let metadata = tokio::fs::metadata(path)

Callers 2

Calls

no outgoing calls

Tested by 1