Skip to content

Commit

Permalink
[Fix] [Connectors-v2-file-ftp] ftp sink path is root path, checkpoint…
Browse files Browse the repository at this point in the history
… fail (apache#6077)
  • Loading branch information
xumingbei committed Dec 25, 2023
1 parent 5de7b9c commit fa46cdf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public BaseFileSinkConfig(@NonNull Config config) {
}
checkNotNull(path);

// remove the last separator, if the path is root path, checkpoint targetPath will be "//" , targetPath.getParent is null
if(path.equals(File.separator)){
if (path.equals(File.separator)) {
this.path = "";
}

Expand Down

0 comments on commit fa46cdf

Please sign in to comment.