Add file path and auto-flush introspection

This commit is contained in:
Nanaloveyuki
2026-05-10 12:38:32 +08:00
parent b6673c66e4
commit b68ba073b4
8 changed files with 50 additions and 4 deletions
+8
View File
@@ -118,6 +118,14 @@ pub fn FileSink::append_mode(self : FileSink) -> Bool {
self.append.val
}
pub fn FileSink::path(self : FileSink) -> String {
self.path
}
pub fn FileSink::auto_flush_enabled(self : FileSink) -> Bool {
self.auto_flush
}
pub fn FileSink::close(self : FileSink) -> Bool {
match self.handle.val {
None => false