Output of ZipArchive() in tree format

Posted by moustafa on Stack Overflow See other posts from Stack Overflow or by moustafa
Published on 2009-12-09T09:54:08Z Indexed on 2010/05/31 14:03 UTC
Read the original article Hit count: 297

Filed under:

i have this list of files i get it by

new ZipArchive();

i mean its in zip file now ths files

  • docs/
  • docs/INSTALL.html
  • docs/auth_api.html
  • docs/corners_right.gif
  • docs/corners_right.png
  • docs/COPYING
  • docs/corners_left.png
  • docs/bg_header.gif
  • docs/CHANGELOG.html
  • docs/coding-guidelines.html
  • docs/hook_system.html
  • docs/FAQ.html
  • docs/site_logo.gif
  • docs/AUTHORS
  • docs/README.html
  • docs/corners_left.gif
  • docs/stylesheet.css
  • docs/New Folder/
  • docs/New Folder/New Text Document.txt
  • docs/New Folder/New Folder/

i want code cut dir name from file and make it sub catgory

i want it this

 docs/
  INSTALL.html
  auth_api.html
  corners_right.gif
  corners_right.png
  COPYING
  New Folder/
    New Text Document.txt
    New Folder/
      New Folder/

I hope it's not impossible

© Stack Overflow or respective owner

Related posts about php