Don't share directories and give each upload a unique id
This commit is contained in:
parent
7130c07100
commit
cbe3554252
1 changed files with 4 additions and 2 deletions
6
sshare
6
sshare
|
@ -3,18 +3,20 @@
|
||||||
import getpass
|
import getpass
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import os
|
import os
|
||||||
|
import time
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
config = Config()
|
config = Config()
|
||||||
|
|
||||||
|
id = time.time_ns()
|
||||||
|
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
"scp",
|
"scp",
|
||||||
"-r",
|
|
||||||
f"-P {config.ssh_port}",
|
f"-P {config.ssh_port}",
|
||||||
f"/home/gnarwhal/Pictures/Screenshots/Screenshot from 2024-07-31 06-34-57.png",
|
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",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue