mirror of
https://github.com/rclone/rclone.git
synced 2025-08-13 23:38:51 +02:00
local: fix crash when deprecated --local-no-unicode-normalization is supplied
This commit is contained in:
@ -21,7 +21,6 @@ import (
|
|||||||
"github.com/ncw/rclone/fs/hash"
|
"github.com/ncw/rclone/fs/hash"
|
||||||
"github.com/ncw/rclone/lib/readers"
|
"github.com/ncw/rclone/lib/readers"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"google.golang.org/appengine/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
@ -125,7 +124,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if opt.NoUTFNorm {
|
if opt.NoUTFNorm {
|
||||||
log.Errorf(nil, "The --local-no-unicode-normalization flag is deprecated and will be removed")
|
fs.Errorf(nil, "The --local-no-unicode-normalization flag is deprecated and will be removed")
|
||||||
}
|
}
|
||||||
|
|
||||||
f := &Fs{
|
f := &Fs{
|
||||||
|
Reference in New Issue
Block a user