make parent directory
This commit is contained in:
parent
9d133270c2
commit
752b5354ab
1 changed files with 4 additions and 2 deletions
|
@ -109,8 +109,10 @@ compareCache file old = do
|
||||||
|
|
||||||
{- Stores a cache of attributes for a file that is associated with a key. -}
|
{- Stores a cache of attributes for a file that is associated with a key. -}
|
||||||
updateCache :: Key -> FilePath -> Annex ()
|
updateCache :: Key -> FilePath -> Annex ()
|
||||||
updateCache key file = withCacheFile key $ \cachefile ->
|
updateCache key file = do
|
||||||
maybe noop (writeFile cachefile . showCache) =<< genCache file
|
withCacheFile key $ \cachefile -> do
|
||||||
|
createDirectoryIfMissing True (parentDir cachefile)
|
||||||
|
maybe noop (writeFile cachefile . showCache) =<< genCache file
|
||||||
|
|
||||||
{- Removes a cache. -}
|
{- Removes a cache. -}
|
||||||
removeCache :: Key -> Annex ()
|
removeCache :: Key -> Annex ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue