View Single Post
Old 05-01-2012, 08:11 AM   #339
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NuPogodi View Post
Apart from avoiding a garbage, I want in future to use these lua-files in making a list of recently opened docs. An evident drawback is that several files may have the same filename, but stored in various folders.
One way to deal with that is to split the filename off from the pathname and then reverse their order, as in:
/somewhere1/filename
/somewhere2/filename

into (for a sorted index listing purposes):
filename:/somewhere1
filename:/somewhere2
Using whatever text decoration (':') you feel makes sense to visually split the fields.
knc1 is offline   Reply With Quote