File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -307,13 +307,11 @@ function m.awaitPreload(scp)
307
307
308
308
if scp .uri and not scp :get (' bad root' ) then
309
309
log .info (' Scan files at:' , scp :getName ())
310
- --- @async
311
310
scp :gc (fw .watch (m .normalize (furi .decode (scp .uri )), true , function (path )
312
- local uri = furi . encode (path )
313
- if m . isIgnored ( uri ) and not files . isLibrary ( uri ) then
311
+ local rpath = m . getRelativePath (path )
312
+ if native ( rpath ) then
314
313
return false
315
314
end
316
- await .delay ()
317
315
return true
318
316
end ))
319
317
local count = 0
@@ -333,13 +331,11 @@ function m.awaitPreload(scp)
333
331
for _ , libMatcher in ipairs (librarys ) do
334
332
log .info (' Scan library at:' , libMatcher .uri )
335
333
local count = 0
336
- --- @async
337
334
scp :gc (fw .watch (furi .decode (libMatcher .uri ), true , function (path )
338
- local uri = furi . encode (path )
339
- if m . isIgnored ( uri ) and not files . isLibrary ( uri ) then
335
+ local rpath = m . getRelativePath (path )
336
+ if libMatcher . matcher ( rpath ) then
340
337
return false
341
338
end
342
- await .delay ()
343
339
return true
344
340
end ))
345
341
scp :addLink (libMatcher .uri )
You can’t perform that action at this time.
0 commit comments