makrushin-evgenii commented on code in PR #35105:
URL: https://github.com/apache/airflow/pull/35105#discussion_r1367953107


##########
airflow/providers/ftp/hooks/ftp.py:
##########
@@ -214,8 +219,10 @@ def store_file(
         else:
             input_handle = local_full_path_or_buffer
         remote_path, remote_file_name = os.path.split(remote_full_path)
+        current_path = conn.pwd()
         conn.cwd(remote_path)
         conn.storbinary(f"STOR {remote_file_name}", input_handle, block_size)

Review Comment:
   Commit with your suggestion: 
   
https://github.com/apache/airflow/pull/35105/commits/86f92cabba9156bbe1dbce1aa46bc33fce901e27



##########
airflow/providers/ftp/hooks/ftp.py:
##########
@@ -214,8 +219,10 @@ def store_file(
         else:
             input_handle = local_full_path_or_buffer
         remote_path, remote_file_name = os.path.split(remote_full_path)
+        current_path = conn.pwd()
         conn.cwd(remote_path)
         conn.storbinary(f"STOR {remote_file_name}", input_handle, block_size)

Review Comment:
   Thank you. Commit with your suggestion: 
   
https://github.com/apache/airflow/pull/35105/commits/86f92cabba9156bbe1dbce1aa46bc33fce901e27



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to