Don't share directories and give each upload a unique id

This commit is contained in:
Gnarwhal 2024-07-31 15:32:51 +00:00
parent 7130c07100
commit cbe3554252
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174

6
sshare
View file

@ -3,18 +3,20 @@
import getpass
import importlib.util
import os
import time
import subprocess
import sys
def main():
config = Config()
id = time.time_ns()
subprocess.run([
"scp",
"-r",
f"-P {config.ssh_port}",
f"/home/gnarwhal/Pictures/Screenshots/Screenshot from 2024-07-31 06-34-57.png",
f"{config.ssh_user}@{config.ssh_domain}:{config.ssh_dir}",
f"{config.ssh_user}@{config.ssh_domain}:{config.ssh_dir}/{id}.png",
])