mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-25 16:08:25 +00:00
Add directory separator to autocomplete. Fixes #984
This commit is contained in:
parent
75ef658962
commit
af08567f24
@ -658,7 +658,7 @@ func restGetAutocompleteDirectory(w http.ResponseWriter, r *http.Request) {
|
|||||||
for _, subdirectory := range subdirectories {
|
for _, subdirectory := range subdirectories {
|
||||||
info, err := os.Stat(subdirectory)
|
info, err := os.Stat(subdirectory)
|
||||||
if err == nil && info.IsDir() {
|
if err == nil && info.IsDir() {
|
||||||
ret = append(ret, subdirectory)
|
ret = append(ret, subdirectory + pathSeparator)
|
||||||
if len(ret) > 9 {
|
if len(ret) > 9 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user