mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
14 lines
322 B
Go
14 lines
322 B
Go
//go:build !windows
|
|
|
|
package global
|
|
|
|
// GetRealPath returns the full path to an entry (given the vanity path).
|
|
func GetRealPath(vanityPath string) string {
|
|
return EntryRoot + vanityPath
|
|
}
|
|
|
|
// GetVanityPath returns a vanityPath given a realPath
|
|
func GetVanityPath(realPath string) string {
|
|
return realPath[RootLength:]
|
|
}
|