(cache_root: &Path, cache_key: &str)
| 101 | } |
| 102 | |
| 103 | pub 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 | |
| 113 | pub async fn source_modified_at_ms(path: &Path) -> Result<i64> { |
| 114 | let metadata = tokio::fs::metadata(path) |
no outgoing calls