There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

aodhsishaj ,

could try a flask webapp


<span style="color:#323232;">
</span><span style="color:#323232;">from flask import Flask, send_from_directory
</span><span style="color:#323232;">import os
</span><span style="color:#323232;">
</span><span style="color:#323232;">app = Flask(__name__)
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Specify the directory you want to share
</span><span style="color:#323232;">SHARED_DIRECTORY = 'shared_files'
</span><span style="color:#323232;">
</span><span style="color:#323232;">@app.route('/files/<path:filename>', methods=['GET'])
</span><span style="color:#323232;">def get_file(filename):
</span><span style="color:#323232;">    """Serve a file from the shared directory."""
</span><span style="color:#323232;">    try:
</span><span style="color:#323232;">        return send_from_directory(SHARED_DIRECTORY, filename)
</span><span style="color:#323232;">    except FileNotFoundError:
</span><span style="color:#323232;">        return "File not found", 404
</span><span style="color:#323232;">
</span><span style="color:#323232;">@app.route('/')
</span><span style="color:#323232;">def list_files():
</span><span style="color:#323232;">    """List files in the shared directory."""
</span><span style="color:#323232;">    files = os.listdir(SHARED_DIRECTORY)
</span><span style="color:#323232;">    files_list = 'n'.join(files)
</span><span style="color:#323232;">    return f"<h1>Files in {SHARED_DIRECTORY}</h1>{files_list}"
</span><span style="color:#323232;">
</span><span style="color:#323232;">if __name__ == '__main__':
</span><span style="color:#323232;">    app.run(host='0.0.0.0', port=5000)
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines