I’m on my Ubuntu PC, and wants to send files to someone using Windows. That computer doesn’t have WinSCP or FTP client installed, so I thought of a way of sending them all files in a certain folder.
I came up with this: sharethisfolder.py
When you run this Python script, it will generate and give you a random code.
dttvb@the-dttvb:~/Desktop/Samples$ python ~/sharethisfolder.py
:60506/754312
You have to prefix this code with http:// and your IP. For example, I can give this to another person:
http://124.120.114.110:60506/754312
When they open it, the python script will zip everything inside the current working directory and send it to another person on-the-fly.
And when that another person is finished downloading these files, then you can just press Ctrl+C to shut down the server.
Limitations:
- Because the zip file is generated on the fly, we don’t know how big will it be. The downloader will not see the file progress.
- You can share only 1 folder at a time.
Have fun.