Add explicit reopen-with-policy helper

This commit is contained in:
Nanaloveyuki
2026-05-10 12:52:01 +08:00
parent 0a7af44f06
commit c779befc23
8 changed files with 36 additions and 11 deletions
+4
View File
@@ -197,6 +197,10 @@ pub fn FileSink::reopen(self : FileSink, append~ : Bool? = None) -> Bool {
}
}
pub fn FileSink::reopen_with_current_policy(self : FileSink) -> Bool {
self.reopen()
}
fn rotated_file_path(path : String, index : Int) -> String {
"\{path}.\{index}"
}