Can I attach a file to a web url?

We currently have a problem where a symbolic link to a file on a web URL would be the ideal solution ...

image.jpg β†’ http://www.host.com/images/image.jpg

Is it possible?

+7
source share
3 answers

Maybe the named pipe you pass with wget for the file?

Change is not wget. You can work with linx-dump. So -

mkfifo reddit
links -dump reddit.com > reddit
cat reddit
+3
source

There are several interesting and interesting solutions. I especially like the @ArjunShankar fuse solution. In the spirit of preserving it, just maybe a file in /etc/cron.dailywith

#!/bin/sh
cd /your/dir && wget -N http://www.host.com/images/image.jpg

Would it be much simpler and good enough (TM)?

+2
source

Mac Maxogden, FUSE:
https://github.com/maxogden/mount-url

brew install osxfuse
npm install -g mount-url

mount-url "https://url-to-10-gb-video-file-on-some-external-cloud-storage/video.mp4?xxx=yyy"

This will create a symbolic link for the file named video.mp4in the current directory.
Not too high access speed, but it works.

+1
source

All Articles