Giter Club home page Giter Club logo

Comments (6)

fangfufu avatar fangfufu commented on June 14, 2024

You can mount the directory containing the ISO file, then loop mount the ISO file as usual.

from httpdirfs.

breisig avatar breisig commented on June 14, 2024

@fangfufu Yes, that is only correct only if the destination file browsing is enabled [or an index.html with the iso file listed in an ahref link]

What Works Currently:
If https://www.example.com/mycrazypath/ remote path has directory browsing enabled [and returns a 200 result code] or an index,html with the rocky-linux-8.iso file list in the HTML file as a a-href, I can mount the https://www.example.com/mycrazypath/ path, do an 'ls' and see the rocky-linux-8.iso file and loop mount the ISO file. [I can verify I can download it directly from https://www.example.com/mycrazypath/rocky-linux-8.iso even without directory browsing].

What Doesn't Work: [and would be a great feature to have] is:
If directory browsing is disabled on https://www.example.com/mycrazypath/ [Returns a 403 Forbidden] but I know that I can still access/download the ISO file directly if the path is known [https://www.example.com/mycrazypath/rocky-linux-8.iso can be downloaded directly from my browser], it would be nice if I could still httpdirfs mount that 1 file to show up in my mounted path. Currently, this does not work with the latest version from master.

Example of what would be great to support

httpdirfs --no-range-check https://www.example.com/mycrazypath/rocky-linux-8.iso /cdrom/

And it should should show
ls /cdrom/*
rocky-linux-8.iso

from httpdirfs.

fangfufu avatar fangfufu commented on June 14, 2024

@breisig , you can use httpfs for that.

from httpdirfs.

breisig avatar breisig commented on June 14, 2024

@fangfufu I have used httpfs but it's been abandoned for awhile now and mounting SSL url's is broken [only http links work]. This would be a great feature to add to httpdirfs for everyone to switch to your project.

from httpdirfs.

fangfufu avatar fangfufu commented on June 14, 2024

Ok, you managed to convince me, I don't really have a timeline on when this will be done though.

from httpdirfs.

fangfufu avatar fangfufu commented on June 14, 2024

@breisig , implemented via f42264d. It should be in the latest master branch. You need to activate it using single-file-mode.

For example:

./httpdirfs -f --cache --single-file-mode https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.0.0-amd64-netinst.iso mnt

Please have a try, and let me know what you think. If you like it, please spread good words of this software! 🙂

from httpdirfs.

Related Issues (20)

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.