From f15b60da84c3729c1c2277b50a679df583145130 Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Thu, 20 Oct 2022 00:27:56 +0800 Subject: [PATCH] new fun --- file/FileWR.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/file/FileWR.go b/file/FileWR.go index 8fc284c..4f78e77 100644 --- a/file/FileWR.go +++ b/file/FileWR.go @@ -277,6 +277,10 @@ func (t *File) IsExist() bool { return true } +func (t *File) File() *os.File { + return t.file +} + func (t *File) getRWCloser() { if t.Config.AutoClose || t.file == nil { if !t.IsExist() { -- 2.39.2