We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec2139 commit d83533eCopy full SHA for d83533e
__main__.py
@@ -67,8 +67,11 @@ def push():
67
for file in files:
68
local_file_path = path.join(root, file)
69
relative_path = path.relpath(local_file_path, copy_dir)
70
- remote_file_path = path.join(remote_path, relative_path)
+ remote_file_path = path.join(remote_path, relative_path).replace("\\", "/")
71
+ remote_dir_path = path.dirname(remote_file_path)
72
try:
73
+ if not client.is_dir(remote_dir_path):
74
+ client.makedirs(remote_dir_path) # Create parent directories if they don't exist
75
client.upload_file(remote_file_path, local_file_path)
76
click.echo(f"Uploaded: {relative_path}")
77
except Exception as e:
0 commit comments