mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
Merge pull request #990 from bigbear2nd/master
Add directory separator to autocomplete. Fixes #984
This commit is contained in:
commit
904b211d98
@ -658,7 +658,7 @@ func restGetAutocompleteDirectory(w http.ResponseWriter, r *http.Request) {
|
||||
for _, subdirectory := range subdirectories {
|
||||
info, err := os.Stat(subdirectory)
|
||||
if err == nil && info.IsDir() {
|
||||
ret = append(ret, subdirectory)
|
||||
ret = append(ret, subdirectory + pathSeparator)
|
||||
if len(ret) > 9 {
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user