Added a sleep to prevent blocking the main thread serving the UI

pull/1559/head^2
morpheus65535 3 years ago
parent e53fcaa59c
commit ab377bae14

@ -50,6 +50,7 @@ Classes
import errno
import os
import time
from stat import S_ISDIR
@ -269,6 +270,7 @@ class DirectorySnapshot:
entries = []
for p in paths:
time.sleep(0.0001)
try:
entry = (p, self.stat(p))
entries.append(entry)

Loading…
Cancel
Save