Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User

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
Super User

No. that blog does not give me the solution

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.