vendredi 27 mars 2015

drawing directory tree of given file paths

Given array of path file : ["c:/user/brands/a.txt", "C:/rails/app/", "C:/user/alk/file"] how to draw this array to tree directory in ruby console like this: C--user--alk--file |----|---brands--a.txt ---rails--app thanks


Aucun commentaire:

Enregistrer un commentaire