syncthing/cmd
Jakob Borg a4147d9019 cmd/syncthing: Fix /rest/system/browse for folder path completion (fixes #4590)
Two issues since the filesystem migration;

- filepath.Base() doesn't do what the code expected when the path ends
  in a slash, and we make sure the path ends in a slash.

- the return should be fully qualified, not just the last component.

With this change it works as before, and passes the new test for it.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4591
LGTM: imsodin
2017-12-13 09:34:47 +00:00
..
stbench all: Fix comment typos 2017-11-04 07:20:11 +00:00
stcli all: Convert folders to use filesystem abstraction 2017-08-19 14:36:56 +00:00
stcompdirs lib: Folder marker is now a folder 2017-09-02 05:52:38 +00:00
stdisco all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stdiscosrv all: Weed out a few other http urls (ref #3976) 2017-02-09 08:04:16 +01:00
stevents all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stfileinfo lib/fs, lib/model, lib/scanner: Make scans cancellable (fixes #3965) 2017-04-26 00:15:23 +00:00
stfinddevice all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stgenfiles all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stindex all: Convert folders to use filesystem abstraction 2017-08-19 14:36:56 +00:00
strelaypoolsrv gui: HTML accessibility updates 2017-07-15 09:54:37 +00:00
strelaysrv all: Fix comment typos 2017-11-04 07:20:11 +00:00
stsigtool cmd/stsigtool: Silence spurious Go 1.10 test/vet complaint 2017-12-10 19:42:17 +01:00
stvanity all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stwatchfile all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
syncthing cmd/syncthing: Fix /rest/system/browse for folder path completion (fixes #4590) 2017-12-13 09:34:47 +00:00
todos all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00