sftp-push-sync 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +10 -5
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.0] - 2025-11-19
4
+
5
+ Sync only handles files and creates missing directories during upload.
6
+ However, it should also manage directories:
7
+
8
+ - They should (optionally) be removed if:
9
+ - for example, a directory is empty because all files have been deleted from it.
10
+ - or if a directory no longer exists locally.
11
+
12
+ This is now taken into account with the option: `cleanupEmptyDirs`.
13
+
3
14
  ## [2.0.0] - 2025-11-18
4
15
 
5
16
  ### Breaking
package/README.md CHANGED
@@ -6,7 +6,10 @@ Implements a push syncronisation with Dry-Run. Performs the following tasks:
6
6
  2. Delete remote files that no longer exist locally
7
7
  3. Identify changes based on size or altered content and upload them
8
8
 
9
- I use the script to transfer [Hugo websites](https://gohugo.io) to the server.
9
+ Why?
10
+
11
+ - I use the script to transfer [Hugo websites](https://gohugo.io) to the server.
12
+ - This is part of the [Hugo-Toolbox](https://www.npmjs.com/package/hugo-toolbox).
10
13
 
11
14
  Features:
12
15
 
@@ -16,7 +19,7 @@ Features:
16
19
  - adds, updates, deletes files
17
20
  - text diff detection
18
21
  - Binary files (images, video, audio, PDF, etc.): SHA-256 hash comparison
19
- - Hashes are cached in .sync-cache.json to save space.
22
+ - Hashes are cached in .sync-cache.*.json
20
23
  - Parallel uploads/deletions via worker pool
21
24
  - include/exclude patterns
22
25
  - Sidecar uploads / downloads - Bypassing the sync process
@@ -55,7 +58,6 @@ Create a `sync.config.json` in the root folder of your project:
55
58
  "password": "mypassword",
56
59
  "syncCache": ".sync-cache.prod.json",
57
60
  "worker": 3,
58
- "cleanupEmptyDirs": true,
59
61
  "sync": {
60
62
  "localRoot": "public",
61
63
  "remoteRoot": "/folder/"
@@ -226,8 +228,9 @@ practical excludes:
226
228
  Sync only handles files and creates missing directories during upload.
227
229
  However, it should also manage directories:
228
230
 
229
- - If, for example, a directory is empty because all files have been deleted from it.
230
- - Or if a directory no longer exists locally.
231
+ - They should (optionally) be removed if:
232
+ - for example, a directory is empty because all files have been deleted from it.
233
+ - or if a directory no longer exists locally.
231
234
 
232
235
  ## Which files are needed?
233
236
 
@@ -250,3 +253,5 @@ Note: The first run always takes a while, especially with lots of media – so b
250
253
 
251
254
  - <https://www.npmjs.com/package/sftp-push-sync>
252
255
  - <https://github.com/cnichte/sftp-push-sync>
256
+ - <https://www.npmjs.com/package/hugo-toolbox>
257
+ - <https://carsten-nichte.de>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sftp-push-sync",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "SFTP sync tool for Hugo projects (local to remote, with hash cache)",
5
5
  "type": "module",
6
6
  "bin": {