MonsterChenzhuo opened a new issue, #4702:
URL: https://github.com/apache/incubator-seatunnel/issues/4702

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   1. When FTPClient creates a directory, it cannot set permissions directly. 
As a result, the created directory cannot be recursive, and the whole directory 
is all messed up.
   <img width="1190" alt="图片" 
src="https://user-images.githubusercontent.com/60029759/236142798-ddeae3db-424b-4200-a25c-1731204186a9.png";>
   <img width="740" alt="图片" 
src="https://user-images.githubusercontent.com/60029759/236143107-79032326-9b7c-42d5-a133-ea10839c5aed.png";>
   Solution: You can send a SITE CHMOD command to change the permissions of the 
directory immediately after creating the directory.
   
   
   
   2. Problem 2: Recursive calls in the mkdirs method may cause the working 
directory not to return to its original state after each recursive call. This 
may cause client.changeWorkingDirectory(parentDir) to return false in some 
cases.
   Solution: The working directory can be restored after each recursive call
   
   
   代码修复完成后执行:
   <img width="763" alt="图片" 
src="https://user-images.githubusercontent.com/60029759/236143531-0fa3e11e-6775-46bf-8b2f-16cb68a80afe.png";>
   
   
   ### SeaTunnel Version
   
   v2.3.1
   
   ### SeaTunnel Config
   
   ```conf
   null
   ```
   
   
   ### Running Command
   
   ```shell
   null
   ```
   
   
   ### Error Exception
   
   ```log
   null
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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