Made an async function to scan folders.
The async functionality is from the usage of QtCuncurrent