I wrote myself a hacky little uploader script, that uses Python3(.5+?) to
automagically create an SFTP batch script, for uploading here. The only thing
you need to do is provide it the name of the file(s) that you want to launch to
space.
Here it is in all it's cobbled together glory:
#!/usr/bin/env python3
import os
import subprocess
import tempfile
from pathlib import Path
with tempfile.NamedTemporaryFile(mode='w+') as commands:
print('cd gopher', file=commands)
for file in files_to_sync:
parts = file.parent.parts
mkdir = '-mkdir '
for part in parts:
mkdir += part + '/'
print(mkdir, file=commands)
print(mkdir.replace('mkdir','chmod 705'), file=commands)