Add explicit append policy setter

This commit is contained in:
Nanaloveyuki
2026-05-10 12:49:08 +08:00
parent a71471ffb0
commit 0a7af44f06
8 changed files with 41 additions and 3 deletions
+4
View File
@@ -118,6 +118,10 @@ pub fn FileSink::append_mode(self : FileSink) -> Bool {
self.append.val
}
pub fn FileSink::set_append_mode(self : FileSink, append : Bool) -> Unit {
self.append.val = append
}
pub fn FileSink::path(self : FileSink) -> String {
self.path
}