add setkey subcommand

And finished implementing move --to
This commit is contained in:
Joey Hess 2010-10-25 20:19:08 -04:00
parent a0e8ba37c6
commit fec9f611df
5 changed files with 75 additions and 37 deletions

View file

@ -32,12 +32,14 @@ shutdown = do
liftIO $ Git.run g ["add", gitStateDir g]
-- clean up any files left in the temp directory
-- clean up any files left in the temp directory, but leave
-- the tmp directory itself
let tmp = annexTmpLocation g
exists <- liftIO $ doesDirectoryExist tmp
if (exists)
then liftIO $ removeDirectoryRecursive $ tmp
else return ()
liftIO $ createDirectoryIfMissing True tmp
return True