The short answer is that it depends on a number of variable factors, but the file system will usually be faster than the database.
The longer answer: scanning a local file system in a known place is usually fast because the resource is close to home, and computers are designed to perform these operations very efficiently.
, , , , , , . , , , "" , . (SqLite , MS Sql Server Oracle), ( , , , ) (- Xeon SATA-RAID , Celeron).