X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=xml-minidom;h=26d5d862343d6d17e804d919a0c317614ce0cf66;hp=9dbfac63fa5f04e20ec224ab5c66cb9e0e0a28a8;hb=4b3d20dd95501946ed454b2932e477fde36813cb;hpb=cec962c2d9730a1d71f5b7a0dfedb6085785d7c2 diff --git a/xml-minidom b/xml-minidom index 9dbfac6..26d5d86 100755 --- a/xml-minidom +++ b/xml-minidom @@ -32,7 +32,7 @@ The VFS was inspired by a FUSE xmlfs: https://github.com/halhen/xmlfs """ -__version__ = "0.3.1" +__version__ = "0.3.2" __author__ = "Oleg Broytman " __copyright__ = "Copyright (C) 2013 PhiloSoft Design" __license__ = "GPL" @@ -134,12 +134,11 @@ def _list(node, path=''): attr_text = _attrs2text(attrs) print "-r--r--r-- 1 user group %d Jan 1 00:00 %s/attributes" % ( len(attr_text), subpath_encoded) + text = _collect_text(element) + if text: + print "-r--r--r-- 1 user group %d Jan 1 00:00 %s/text" % ( + len(text), subpath_encoded) _list(element, subpath) - if path: - text = _collect_text(node) - if text: - print "-r--r--r-- 1 user group %d Jan 1 00:00 %s/text" % ( - len(text), path.encode(default_encoding, "replace")) def mcxml_list(): """List the entire VFS"""