+-- -*- coding: utf-8 -*-
module Rakka.Storage.Repos
( findAllPagesInRevision
, getDirContentsInRevision
else
return NotFound
when (status == NoContent)
- $ do doReposTxn repos
+ $ ( (doReposTxn repos
rev
"[Rakka]"
(Just "Automatic commit by Rakka for page deleting")
attachmentExists <- isDirectory attachmentPath
when attachmentExists
$ do deleteEntry attachmentPath
- deleteEmptyParentDirectories attachmentPath
- return ()
+ deleteEmptyParentDirectories attachmentPath)
+ >> return () )
return status
unless exists
$ do createParentDirectories path
makeFile path
- applyText path Nothing (serializeToString attachment)
+ applyText path Nothing (encodeString $ serializeToString attachment)
case ret of
Left _ -> return Conflict
Right _ -> return NoContent