Skip to content

mmai/jquery.apachetree

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

jquery.apachetree

Get the content of an Apache Directory Index

Usage

 $.getApacheTree('yourbrowseabledirectory/').done(
   function(data){
     // Do something with data
   }
 );

Returns something like :

[
  {
    file: "afile.txt",
    href: "yourbrowseabledirectory/afile.txt"
  },
  {
    file: "anotherfile.txt",
    href: "yourbrowseabledirectory/anotherfile.txt"
  },
  {
    file: "subdirectory/",
    href: "yourbrowseabledirectory/subdirectory/"
    nodes: [
      {
        file: "lorem.csv",
        href: "yourbrowseabledirectory/subdirectory/lorem.csv"
      },
      {
        file: "ipsum.png",
        href: "yourbrowseabledirectory/subdirectory/ipsum.png"
      }
    ]
  }
]

About

Get the content of an Apache Directory Index

Resources

Stars

Watchers

Forks

Packages

No packages published