cmd: refactor to use fspath.SplitFs instead of fs.ParseRemote #4996

This commit is contained in:
Nick Craig-Wood 2021-02-10 14:37:57 +00:00
parent f17d7c0012
commit 28f6efe955

View File

@ -84,7 +84,7 @@ func ShowVersion() {
// It returns a string with the file name if points to a file
// otherwise "".
func NewFsFile(remote string) (fs.Fs, string) {
_, _, fsPath, err := fs.ParseRemote(remote)
_, fsPath, err := fspath.SplitFs(remote)
if err != nil {
err = fs.CountError(err)
log.Fatalf("Failed to create file system for %q: %v", remote, err)