diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-12 19:00:13 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-12 11:00:13 -0700 |
| commit | c5d9af5aa4d9fb20316be45ab1b775bcf61bcad5 (patch) | |
| tree | 300f7c6814d41ad12ff5665f3f14f24a54c62e4d /hotline/file_path.go | |
| parent | 72dd37f1abb2b550aaaac48eac677403d5664797 (diff) | |
More cleanup
Diffstat (limited to 'hotline/file_path.go')
| -rw-r--r-- | hotline/file_path.go | 9 |
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() +} |