Skip to main content

fileshimstem - a terrible way to expose a filesystem over the network

Project description

fileshimstem

This is pretty terrible, please don't use it.

Configuration

Config file is fileshimstem.json, it can be where you run the script from, or in ~/.config/fileshimstem.json.

Option Type Default Description
goodpaths List[str] None Needs to be set, is the list of allowed paths for requests.
port int 8000 The port the server will listen on.
host str 127.0.0.1 The host the server will listen on - 0.0.0.0 allows all IPv4 etc.

API Docs

Access /docs when running the server, but simply:

GET /{path}

eg: curl http://localhost:8000/e:/Downloads/filename.txt

Gets the file contents.

HEAD /{path}

eg: curl -X HEAD http://localhost:8000/e:/Downloads/filename.txt

Does a stat and returns the details in the headers.

OPTIONS /update

Does a git pull and updates the server configuration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fileshimstem-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

fileshimstem-0.1.0-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page