mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-02 03:37:13 +02:00
[ui] ThumbnailCache: check cache dir existence before cleaning
This commit is contained in:
parent
bfdcfb52cc
commit
b372946516
1 changed files with 5 additions and 0 deletions
|
@ -102,6 +102,11 @@ class ThumbnailCache(QObject):
|
||||||
Scan the thumbnail directory and
|
Scan the thumbnail directory and
|
||||||
remove all thumbnails that have not been used for more than storageTimeLimit days.
|
remove all thumbnails that have not been used for more than storageTimeLimit days.
|
||||||
"""
|
"""
|
||||||
|
# Check if thumbnail directory exists
|
||||||
|
if not os.path.exists(ThumbnailCache.thumbnailDir):
|
||||||
|
logging.debug('[ThumbnailCache] Thumbnail directory does not exist yet.')
|
||||||
|
return
|
||||||
|
|
||||||
# Get current time
|
# Get current time
|
||||||
now = time.time()
|
now = time.time()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue