cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YonghunLee
Helper I
Helper I

How to get list of image files as quickly as the dos command “dir/w”

I need to get list of image files in a folder and subfolders

But when I use data sources type as Folder, It requires a lot of time to refresh because image data is too big.

So I manually use DOS command, dir/w /s /s > text.txt to get the list quickly and then get data from the text file.

Is there any way to get list of image files as fast as the DOS command dir/w

3 REPLIES 3
PhilipTreacy
Super User III
Super User III

Hi @YonghunLee 

It shouldn't take long to refresh the list of files.  I just did a test on my PC with 16,000+ images and it took a couple of seconds.

What data are you trying to retieve though? If you are including the Binary column in the list of results, PQ will try to access that data.  If the Binary content is not available maybe because it's on OneDrive and the OneDrive app is turned off on your PC, or the image is on a network share you can't access - that will slow the query a lot.

Are you getting any errors on refresh?

What data are you loading into the final table? If you just want the image path/name then remove all other columns - particularly Binary.

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


amitchandak
Super User IV
Super User IV

@YonghunLee , see if content of this blog can help you https://radacad.com/get-the-list-of-folders-only-in-power-bi-using-power-query



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

No. that blog does not give me the solution

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors