diff --git a/main.py b/main.py index 884f2e7..85a6e69 100644 --- a/main.py +++ b/main.py @@ -26,6 +26,8 @@ def binary_string_to_file(binary_string): file.write(binary_string) def upload(remote_dir,name,binary_string): + if check_box_has(remote_dir,name,binary_string): + return remote_path = os.path.join(remote_dir, name) check_parent_dir(remote_path) binary_string_to_file(binary_string)