Repository navigation
Description
More details in this forum post.
With a directory setup on the server like this:
subdir/subsubdir/new.txt
And ignores setup on Android phone to only sync subdir/subdir and not any subdir/subdirx like this:
!/subdir/subsubdir
*
New file created on phone: no log entries, not synced to server
New file created on server: file sync’d to phone
Existing file on both, deleted on phone or server, correctly deleted on both
Existing file on both, edited on server: sync’d to phone correctly
Existing file on both, edited on phone: not sync’d to server, no log entries.
Now if that file is subsequently edited on the server, a sync-conflict file is correctly created on both devices.
To summarize: new files created on phone are not sync’d, nor are changes made on the phone to existing files. All other changes/deletes/conflicts are handled correctly.
Log entries per @AudriusButkevicius
04-01 09:10:52.869 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk [subdir/subsubdir/new.txt] Matcher/[!/subdir/subsubdir !/subdir/subsubdir/** * **/* */** **/*/**]@0x4001165b00
04-01 09:10:52.869 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: rescan: File{Name:"subdir/subsubdir/new.txt", Sequence:13, Permissions:0660, ModTime:2020-04-01 16:06:52.363230458 +0000 UTC, Version:{[{ATUYUND 5} {BQMAUHB 5}]}, Length:49, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false, BlockSize:131072, Blocks:[Block{0/49/2755465447/79d04840fe79e58c912456068542762229aa32ac36168b4078ee070cf2573a4b}]} 1585757442 -rw-rw----
04-01 09:10:52.870 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: to hash: subdir/subsubdir/new.txt File{Name:"subdir/subsubdir/new.txt", Sequence:0, Permissions:0660, ModTime:2020-04-01 16:10:42.865204718 +0000 UTC, Version:{[{ATUYUND 5} {BQMAUHB 5}]}, Length:63, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false, BlockSize:131072, Blocks:[]}
04-01 09:10:52.870 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: real to hash: subdir/subsubdir/new.txt
04-01 09:10:52.870 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk
and
04-01 11:11:00.750 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk [] Matcher/[!/subdir/subsubdir !/subdir/subsubdir/** * **/* */** **/*/**]@0x40002b81b0
04-01 11:11:00.751 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: ignored (internal): .stfolder
04-01 11:11:00.751 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: ignored (internal): .stignore
04-01 11:11:00.751 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: ignored (patterns): subdir
04-01 11:11:00.752 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk progress done 3427d-oqk5y [] Matcher/[!/subdir/subsubdir !/subdir/subsubdir/** * **/* */** **/*/**]@0x40002b81b0
The following ignore pattern allows successful bi-directional sync:
!/subdir/subsubdir/**
!/subdir/subsubdir
/subdir/**
!/subdir
/**
Thanks!
Version Information
Syncthing Version: v1.4.0
OS Version: Archlinux, Android 10
Activity
lib/ignore: Only skip for toplevel includes (fixes syncthing#6487)
lib/ignore: Only skip for toplevel includes (fixes syncthing#6487)