summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'file.go')
-rw-r--r--file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.go b/file.go
index 9707a79..1d3360e 100644
--- a/file.go
+++ b/file.go
@@ -66,8 +66,8 @@ func (f *File) Save() error {
// SaveAs provides a function to create or update to a spreadsheet at the
// provided path.
func (f *File) SaveAs(name string, opt ...Options) error {
- if len(name) > MaxFileNameLength {
- return ErrMaxFileNameLength
+ if len(name) > MaxFilePathLength {
+ return ErrMaxFilePathLength
}
f.Path = name
contentType, ok := map[string]string{