SFTP provider 4.0: create_directory may not apply the expected permissions. #26226
-
Hi team, We have upgraded the SFTP provider to version 4.0.0 recently, but we notice we are not able to upload files into a newly created directory using GCSToSFTPOperator We can see the directories are created with these permissions: After investigation, I can see there are 2 methods in the SFTP hook to create a directory:
The first one seems to convert to octal, while the other one doesn't. Based on paramiko doc, I believe the function expects an octal number. If I convert 777 to octal, I get 1411, which matches with the I would think it's a bug that can be simply fixed by converting WDYT? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Feel free to fix it |
Beta Was this translation helpful? Give feedback.
Feel free to fix it