-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Search before asking
- I had searched in the issues and found no similar issues.
What happened
- 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.
- 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
After the code repair is completed, execute:

How to reproduce this issue locally:
Pull this branch to your local machine:#4647
First step: Disable some test cases (reduce debugging execution waiting time, it is recommended to only execute lines 126 to 128)

Second step: Use breakpoint debugging to prevent the container from being released
Third step: Log into the FTP container to view the content that has been written

SeaTunnel Version
v2.3.1
SeaTunnel Config
null
Running Command
nullError Exception
null
Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct

