func CleanRemotePath(path string) string {
	cleanedPath := strings.TrimSpace(path)
	if !absRemotePath.MatchString(cleanedPath) {
		cleanedPath = defaultMount + cleanedPath
	}
	cleanedPath = strings.TrimSuffix(cleanedPath, "/")
	cleanedPath = multiSlashRegex.ReplaceAllString(cleanedPath, "/")
	return cleanedPath
}
CleanRemotePath will reduce multiple consecutive slashes into one and
then remove a trailing slash if any.
package rfm
import (
	"fmt"
	"path/filepath"
	"regexp"
	"strings"
)
const (
	Byte = 1 << (10 * iota)
	Kilobyte
	Megabyte
	Gigabyte
	Terabyte
	paddedWidth  = 5
	defaultMount = "0:/"
)
var multiSlashRegex = regexp.MustCompile(`/{2,}`)
var absRemotePath = regexp.MustCompile(`^[0-9]:/`)