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

This commit is contained in:
morpheus65535 2021-09-27 16:15:35 -04:00
parent e53fcaa59c
commit ab377bae14
1 changed files with 2 additions and 0 deletions

View File

@ -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)