aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_path.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/file_path.go')
-rw-r--r--hotline/file_path.go9
1 files changed, 9 insertions, 0 deletions
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()
+}