xftp: server store log (#652)

This commit is contained in:
spaced4ndy
2023-02-24 15:21:07 +04:00
committed by GitHub
parent 3ab5e9d110
commit 202922bceb
6 changed files with 111 additions and 15 deletions

View File

@@ -75,9 +75,9 @@ instance StrEncoding Str where
strEncode = unStr
strP = Str <$> A.takeTill (== ' ') <* optional A.space
instance StrEncoding FilePath where
strEncode = strEncode
strDecode = strDecode
instance StrEncoding String where
strEncode = strEncode . B.pack
strP = B.unpack <$> strP
instance ToJSON Str where
toJSON (Str s) = strToJSON s