Jakob Borg and GitHub
f6c551fe87
chore(fs): remove unused SymlinksSupported() method ( #10684 )
...
💀
Signed-off-by: Jakob Borg <jakob@kastelo.net >
2026-05-09 10:48:53 +00:00
Jakob Borg and GitHub
e82ed6e3d3
style: gofumpt all the things ( #9829 )
...
Literally `gofumpt -w .` from the top level dir. Guaranteed to be minor
style changes only and nothing else.
@imsodin per request?
2024-11-19 11:32:56 +01:00
a29605750d
lib/fs: Try to remove read only Windows files ( fixes #3744 ) ( #8650 )
...
This happens when folders contain a custom icon.
Co-authored-by: Alexandre Alves <alexandrealvesdb.contact@gmail.com >
2022-11-07 21:33:17 +01:00
Jakob Borg and GitHub
adce6fa473
all: Support syncing ownership ( fixes #1329 ) ( #8434 )
...
This adds support for syncing ownership on Unixes and on Windows. The
scanner always picks up ownership information, but it is not applied
unless the new folder option "Sync Ownership" is set.
Ownership data is stored in a new FileInfo field called "platform data". This
is intended to hold further platform-specific data in the future
(specifically, extended attributes), which is why the whole design is a
bit overkill for just ownership.
2022-07-26 08:24:58 +02:00
Jakob Borg and GitHub
d47745a86b
all: Update build constraints to Go 1.17 style ( #7894 )
2021-08-17 10:10:41 +02:00
Jakob Borg and GitHub
97437cad64
lib/fs: Ignore normalization differences in case insensitive lookup ( fixes #7677 ) ( #7678 )
2021-05-17 12:35:03 +02:00
Jakob Borg and GitHub
dd92b2b8f4
all: Tweak error creation ( #6391 )
...
- In the few places where we wrap errors, use the new Go 1.13 "%w"
construction instead of %s or %v.
- Where we create errors with constant strings, consistently use
errors.New and not fmt.Errorf.
- Remove capitalization from errors in the few places where we had that.
2020-03-03 22:40:00 +01:00
Simon Frei and Jakob Borg
35b699dc77
lib/fs: Check events against both the user and eval root ( #6013 )
2019-09-22 08:03:22 +01:00
Mingxuan Lin and Simon Frei
eb4fe808c5
lib/fs: Fallback EvalSymlinks method on windows ( fixes #5609 ) ( #5611 )
2019-06-10 14:33:53 +02:00
Simon Frei and Audrius Butkevicius
486230768e
lib/fs, lib/model: Add error channel to Watch to avoid panics ( fixes #5697 ) ( #5734 )
...
* lib/fs, lib/model: Add error channel to Watch to avoid panics (fixes #5697 )
* forgot unsupported watch
* and more non(-standard)-unixy fixes
* and windows test
* review
2019-05-25 20:08:26 +01:00
Simon Frei and Jakob Borg
dfbbb286fc
lib/fs: Consider win83 for root path as well when watching (ref #5706 ) ( #5709 )
2019-05-11 10:06:04 +02:00
Simon Frei and Audrius Butkevicius
03d0f0dc34
lib/fs: Try EvalSymlinks without '\\?\' prefix on failure ( fixes #5226 ) ( #5227 )
2018-09-26 19:28:20 +01:00
Simon Frei and Jakob Borg
50ba0fd079
lib/fs: Case insensitive conversion to rel path on windows ( fixes #5183 ) ( #5176 )
2018-09-11 22:30:32 +02:00
Simon Frei and Jakob Borg
e20679afe1
lib/fs: Evaluate root when watching not on fs creation ( fixes #5043 ) ( #5105 )
2018-08-11 22:24:36 +02:00
Simon Frei and GitHub
ee6516aa31
lib/fs: Resolve 8.3 filenames from watcher (ref #3800 ) ( #4975 )
2018-06-04 13:41:03 +02:00
Simon Frei and Jakob Borg
6802505dda
lib/fs: Fix MkdirAll failure due to \\?\ ( fixes #4762 ) ( #4763 )
2018-02-16 15:19:20 +01:00
Emil Hessman and Audrius Butkevicius
bbc178ccc4
lib/fs: harmonize CreateSymlink definitions ( fixes #4567 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4632
LGTM: imsodin, AudriusButkevicius
2018-01-14 14:25:04 +00:00
Audrius Butkevicius and Jakob Borg
3d8b4a42b7
all: Convert folders to use filesystem abstraction
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4228
2017-08-19 14:36:56 +00:00