From c5d9af5aa4d9fb20316be45ab1b775bcf61bcad5 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Thu, 12 Aug 2021 19:00:13 -0700 Subject: More cleanup --- hotline/file_path.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hotline/file_path.go') diff --git a/hotline/file_path.go b/hotline/file_path.go index ae96e52..733dfaa 100644 --- a/hotline/file_path.go +++ b/hotline/file_path.go @@ -52,3 +52,12 @@ func (fp *FilePath) String() string { } return strings.Join(out, pathSeparator) } + +func ReadFilePath(filePathFieldData []byte) string { + var fp FilePath + err := fp.UnmarshalBinary(filePathFieldData) + if err != nil { + // TODO + } + return fp.String() +} -- cgit