summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'file.go')
-rw-r--r--file.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.go b/file.go
index ecdadf4..5931bdb 100644
--- a/file.go
+++ b/file.go
@@ -60,6 +60,9 @@ func (f *File) Save() error {
if f.Path == "" {
return ErrSave
}
+ if f.options != nil {
+ return f.SaveAs(f.Path, *f.options)
+ }
return f.SaveAs(f.Path)
}