]> 127.0.0.1 Git - part/.git/commitdiff
new fun v0.10.16
authorqydysky <32743305+qydysky@users.noreply.github.com>
Wed, 19 Oct 2022 16:27:56 +0000 (00:27 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Wed, 19 Oct 2022 16:27:56 +0000 (00:27 +0800)
file/FileWR.go

index 8fc284c5a9f51004ab8f2b0083770d88f35e1442..4f78e7707fa2e57dde36c196f5ff8accd7c7dcf9 100644 (file)
@@ -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() {