d5f2463702
* Switch to using .git/annex/othertmp for tmp files other than partial downloads, and make stale files left in that directory when git-annex is interrupted be cleaned up promptly by subsequent git-annex processes. * The .git/annex/misctmp directory is no longer used and git-annex will delete anything lingering in there after it's 1 week old. Also, in Annex.Ingest, made the filename it uses in the tmp dir be prefixed with "ingest-" to avoid potentially using a filename used by some other code.
21 lines
375 B
Haskell
21 lines
375 B
Haskell
{- Enumeration of cleanup actions
|
|
-
|
|
- Copyright 2014 Joey Hess <id@joeyh.name>
|
|
-
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
-}
|
|
|
|
module Types.CleanupActions where
|
|
|
|
import Types.UUID
|
|
|
|
import Utility.Url
|
|
|
|
data CleanupAction
|
|
= RemoteCleanup UUID
|
|
| StopHook UUID
|
|
| FsckCleanup
|
|
| SshCachingCleanup
|
|
| TorrentCleanup URLString
|
|
| OtherTmpCleanup
|
|
deriving (Eq, Ord)
|