you need to iterate the file table and get the data.
After your script try something like this.
for i=1 to len(SourceFile)
vPath = peek('SourceFile', i, 'SourceFileTable');
maybe if you are using qlik sense you need to lib:// you will need to make some substringcount() and/or subfiled() to get the path after the Root.
hope it helps.