mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
do not start watcher on grandchildren
This commit is contained in:
parent
ad9413cbbb
commit
2efb2a7de0
@ -414,7 +414,7 @@ define(function(require, exports, module) {
|
||||
// watch children
|
||||
var substr = id[id.length - 1] !== "/" ? id + "/" : id;
|
||||
Object.keys(expandedList).forEach(function(path) {
|
||||
if (path.lastIndexOf(substr, 0) === 0) {
|
||||
if (path.startsWith(substr) && path.indexOf("/", substr.length) == -1) {
|
||||
watcher.watch(path, refresh);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user