<o:p> </o:p>
>>> To clarify, my goal is to build a list of file paths, from an undetermined number of directories (list a), themselves containing an undetermined number of data files (list b). Then use this resulting (c) list to input data in a single kdb file with 0:. <o:p></o:p>
<o:p> </o:p>
If there is a more elegant way to proceed, feel free! Thx<o:p></o:p>
<o:p> </o:p>
I would suggest to work with .Q.dd instead. See example codes:<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
/ current working directory<o:p></o:p>
cwd:`:.<o:p></o:p>
<o:p> </o:p>
/ get the contents<o:p></o:p>
(::)d: key dir<o:p></o:p>
<o:p> </o:p>
/ get the files<o:p></o:p>
r where f:r~'key@'r:.Q.dd[dir] @'d<o:p></o:p>
<o:p> </o:p>
/ get the directories<o:p></o:p>
r where not f<o:p></o:p>
<o:p> </o:p>
HTH,<o:p></o:p>
<o:p> </o:p>
Kim<o:p></o:p>
<o:p> </o:p>
Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von JP
Gesendet: Mittwoch, 26. März 2014 01:08
An: personal-kdbplus@googlegroups.com
Betreff: Re: [personal kdb+] Re: String concatenation/distribution across 2 lists<o:p></o:p>
<o:p> </o:p>
Thx Pawel,<o:p></o:p>
<o:p> </o:p>
The proposed code does work, though I suspect the <enlisting> of singletons in the (b) list would cause me problems, as I do not know a priori which elements of list (b) are unique.<o:p></o:p>
<o:p> </o:p>
To clarify, my goal is to build a list of file paths, from an undetermined number of directories (list a), themselves containing an undetermined number of data files (list b). Then use this resulting (c) list to input data in a single kdb file with 0:. <o:p></o:p>
<o:p> </o:p>
If there is a more elegant way to proceed, feel free! Thx<o:p></o:p>
JP