Files are being copied :D

This commit is contained in:
Gnarwhal 2024-07-31 15:06:45 +00:00
commit 7130c07100
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
3 changed files with 197 additions and 0 deletions

31
sshare Executable file
View file

@ -0,0 +1,31 @@
#!/usr/bin/env python3
import getpass
import importlib.util
import os
import subprocess
import sys
def main():
config = Config()
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}",
])
class Config:
def __init__(self):
self.ssh_port = 2222
self.ssh_user = getpass.getuser()
self.ssh_domain = "monodon.me"
self.ssh_dir = "~/sshare/"
if __name__ == '__main__':
main()