util/disk_cache: use stat() to check if entry is a directory
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 Feb 2017 04:05:19 +0000 (15:05 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 10 Feb 2017 12:50:36 +0000 (23:50 +1100)
commitd7b3707c612027b354deea6bc5eae56a02d5f8d5
treee3f96afcaa474b4b011675271017067071d498a7
parent463236bd3100e99694dc6a1b21495dbaf5136058
util/disk_cache: use stat() to check if entry is a directory

d_type is not supported on all systems.

Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97967
src/util/disk_cache.c