sync-mht 0.3.8.4 → 0.3.8.5
raw patch · 4 files changed
+10/−8 lines, 4 files
Files
- README.md +6/−4
- src/Sync/MerkleTree/Analyse.hs +1/−1
- src/Sync/MerkleTree/Client.hs +1/−1
- sync-mht.cabal +2/−2
README.md view
@@ -4,7 +4,7 @@ [](http://codecov.io/github/ekarayel/sync-mht?branch=master) [](http://hackage.haskell.org/package/sync-mht) [](https://github.com/ekarayel/sync-mht/releases)-[](http://stackage.org/lts-3/package/sync-mht)+[](http://stackage.org/lts-5/package/sync-mht) [](http://stackage.org/nightly/package/sync-mht) ## Synopsis@@ -37,9 +37,11 @@ to synchronize the folder /bar (of the container named bar) with the local folder foo/. -Note that: The options -a -u --delete respectively, allow copying of files to the target directory,-updating files that are already in the target directory - not matching the contents in the source-directory and deleting files that are in the destination directory but not in the source directory.+By default `sync-mht` will only show a statistic about the difference between the source and+destination directories. The options `--add`, `--update` and `--delete` respectively allow+copying of files to the target directory, updating files that are already in the target directory -+not matching the contents in the source directory and deleting files that are in the destination+directory but not in the source directory. ## Setup Installing the latest release of sync-mht with [stack](https://github.com/commercialhaskell/stack):
src/Sync/MerkleTree/Analyse.hs view
@@ -58,7 +58,7 @@ [ FileEntry $ File { f_name = path' , f_size = FileSize filesize- , f_modtime = FileModTime modtime+ , f_modtime = FileModTime $ fromIntegral modtime } ] | isDirectory status = liftM ((DirectoryEntry path'):) $ analyseSubDirectory fp' ignore path'
src/Sync/MerkleTree/Client.hs view
@@ -189,7 +189,7 @@ loop firstResult liftIO $ hClose h liftIO $ modifyIORef (pg_count pg) (subtract 1)- let modTime = (CTime $ unModTime $ f_modtime f)+ let modTime = (CTime $ fromIntegral $ unModTime $ f_modtime f) liftIO $ setFileTimes (toFilePath fp $ f_name f) modTime modTime DirectoryEntry p -> do liftIO $ modifyIORef (pg_count pg) (subtract 1)
sync-mht.cabal view
@@ -8,7 +8,7 @@ extra-doc-files: README.md cabal-version: >= 1.18 build-type: Simple-version: 0.3.8.4+version: 0.3.8.5 homepage: https://github.com/ekarayel/sync-mht bug-reports: https://github.com/ekarayel/sync-mht/issues package-url: https://github.com/ekarayel/sync-mht@@ -29,7 +29,7 @@ location: https://github.com/ekarayel/sync-mht source-repository this type: git- tag: 0.3.8.4+ tag: 0.3.8.5 location: https://github.com/ekarayel/sync-mht benchmark benchmarks type: exitcode-stdio-1.0