Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

fix(cache): allow readonly permission reset before file removal on Windows

Samir Hossains097e1d9cd124
diff --git a/src/cache.rs b/src/cache.rs
index 39dd861..a99d00b 100644
--- a/src/cache.rs
+++ b/src/cache.rs
@@ -531,6 +531,7 @@ pub fn set_captions_cache_typed(subject_id: &str, resource_id: &str, captions: &
set_typed_cache(&path, CACHE_EXPIRY_SECS, captions);
}
+#[cfg_attr(windows, allow(clippy::permissions_set_readonly_false))]
fn resilient_remove_file(path: &Path) -> std::io::Result<()> {
match fs::remove_file(path) {
Ok(()) => Ok(()),