diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-09-04 10:38:36 -0700 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-09-04 11:15:43 -0700 |
| commit | 9d546f04c640c0eb1ded6e585c99e2cd11fb1847 (patch) | |
| tree | c636ca6b8e5c0658dac808a7ac6feb5289c604ba /src/Propellor/Property/File.hs | |
| parent | 2c94926558850cb702fd8e844ccbe768937af110 (diff) | |
Added Propellor.Property.Rsync.
Diffstat (limited to 'src/Propellor/Property/File.hs')
| -rw-r--r-- | src/Propellor/Property/File.hs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/Propellor/Property/File.hs b/src/Propellor/Property/File.hs index 239095c7..adced166 100644 --- a/src/Propellor/Property/File.hs +++ b/src/Propellor/Property/File.hs @@ -105,17 +105,3 @@ mode :: FilePath -> FileMode -> Property NoInfo mode f v = property (f ++ " mode " ++ show v) $ do liftIO $ modifyFileMode f (\_old -> v) noChange - --- | Ensures that the second directory exists and has identical contents --- as the first directory. --- --- Implemented with rsync. --- --- rsync -av 1/ 2/ --exclude='2/*' --delete --delete-excluded -copyDir :: FilePath -> FilePath -> Property NoInfo -copyDir src dest = copyDir' src dest [] - --- | Like copyDir, but avoids copying anything into directories --- in the list. Those directories are created, but will be kept empty. -copyDir' :: FilePath -> FilePath -> [FilePath] -> Property NoInfo -copyDir' src dest exclude = undefined |
