]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/file_path.go
More cleanup
[rbdr/mobius] / hotline / file_path.go
index ae96e528633d02e464c0aa035aa1a27746c83981..733dfaa64ceafce0bc6bd0f03e8c2c91a43789f2 100644 (file)
@@ -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()
+}