Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to use relative path in (for each FoundFile in filelist())

Hi ,

     I am  hard codeing the path like  filelist(E:\QlikView) its working fine but when i am useing the relative path its not working. Its skiping the for loop code and going to end.

1 Reply
oscar_ortiz
Partner - Specialist
Partner - Specialist

You can try something like this:

vImagePath = '..\Images\';

FOR Each FoundFile in filelist ('$(vImagePath)' & '*.PNG')

Temp:
LOAD
'$(FoundFile)'
as Name,
FileSize( '$(FoundFile)' ) as Size,
FileTime( '$(FoundFile)' ) as FileTime
autogenerate 1;

NEXT FoundFile