PackageManager just because
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
222 B

package Filesystem
import (
"path/filepath"
"strings"
"PackageManager/Variables"
)
func StripRootDir(path string) string {
return filepath.Join(
"/",
strings.TrimPrefix(
path,
Variables.RootDir,
),
)
}