opendirindexer

command module
v0.0.0-...-351778a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 9 Imported by: 0

README

opendirindexer

Go Report Card

Open directory indexer command line tool

Installation

go install github.com/aquilax/opendirindexer@latest

Usage

Usage of opendirindexer:
opendirindexer [OPTIONS] URL
  -debug
        Enable debugging
  -ignoreRobots
        Ignores robots.txt restrictions
  -insecure
        Allow insecure tls connections
  -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 -

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL