0.0
No commit activity in last 3 years
No release in over 3 years
Represents a file tree using a Polyrex document
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.1, >= 1.1.13
 Project Readme

Introducing the Filetree_xml gem

require 'filetree_xml'

s =<<EOF

<?polyrex schema='files[title,tags]/file[title]'?>

title: Depot File Index
tags: files index

views
  products
    _form.html.erb
    new.html.erb

EOF


ftx = FileTreeXML.new s
ftx.ls  #=> ["views"] 
ftx.ls 'views/products' #=> ["_form.html.erb", "new.html.erb"]

The above example creates a representation of a file tree using plain text. It can then be used to list files in the selected directory.

Resources

filetreexml gem filetree