Skip to content
Open directory indexer
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
go.mod
go.sum
main.go

README.md

opendirindexer

Go Report Card

Open directory indexer command line tool

Installation

go install github.com/aquilax/opendirindexer

Usage

Usage of opendirindexer:
opendirindexer [OPTIONS] URL
  -debug
    	Enable debugging
  -ingoreRobots
    	Ignores robots.txt restrictions
  -userAgent string
    	set user agent (default "opendirindexer/1.0")

Example:

Given the following structure:

$ tree
.
├── 4.txt
├── test1
│   ├── 1.txt
│   └── test1.1
│       └── 1.txt
└── test2
    └── 3.txt

3 directories, 4 files

The output will be:

$ opendirindexer http://localhost:8000
http://localhost:8000/4.txt
http://localhost:8000/test1/1.txt
http://localhost:8000/test2/3.txt
http://localhost:8000/test1/test1.1/1.txt

And the server log looks like:

$ python -m http.server 8000
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET /test1/ HTTP/1.1" 200 -
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET /test2/ HTTP/1.1" 200 -
127.0.0.1 - - [14/Apr/2019 08:43:25] "GET /test1/test1.1/ HTTP/1.1" 200 -
You can’t perform that action at this time.