Coder Social home page Coder Social logo

httpfs's Introduction

HTTPFS

HTTPFS is a fuse filesystem capable of mounting a typical Apache directory index as a local read-only filesystem.

Requirements

Python dependencies (works on both Python 2 and 3):

  • requests
  • fusepy
  • beautifulsoup4
  • six

Usage

usage: httpfs.py [-h] [--foreground] [--debug] [--nothreads] [--no_ssl_verify]
                 [--allow_other] [-o OPTIONS]
                 http_resource mountpoint

positional arguments:
  http_resource         Target web directory index
  mountpoint            Target directory

optional arguments:
  -h, --help            show this help message and exit
  --foreground          Do not fork into background (default: False)
  --debug               Enable debug logging (default: False)
  --nothreads           Disable fuse threads (default: False)
  --no_ssl_verify       Disable SSL Verification (default: False)
  --allow_other         Allow users other than the one running the command to
                        access the directory. (default: False)
  -o OPTIONS, --options OPTIONS
                        Mount-style variant of the above options
                        (e.g. -o no_ssl_verify,allow_other (default: )

Registering mount command

You can register this filesystem (so it can be used in fstab or with the mount command) in the following way:

# Clone the repository
git clone https://github.com/Kurocon/HTTPfs.git

# Change into directory 
cd HTTPfs

# Make a symbolic link to /usr/sbin/
sudo ln -s `pwd`/httpfs.py /usr/sbin/mount.httpfs

You should now be able to use the filesystem in the following ways:

# In /etc/fstab
http://some.server/    /mnt/mountpoint    httpfs.py    allow_others      0    0

# In a normal mount command
sudo mount.httpfs http://some.server/ /mnt/mountpoint -o allow_others

# Or using the normal mount command
sudo mount -t httpfs http://some.server/ /mnt/mountpoint -o allow_others

httpfs's People

Contributors

kurocon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.