mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-17 09:29:36 +08:00
Update StandardFtpHelper.java
This commit is contained in:
parent
40aed187f9
commit
908d0fda44
@ -238,16 +238,4 @@ public class StandardFtpHelper extends FtpHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void deleteFile(String filePath) {
|
|
||||||
|
|
||||||
try{
|
|
||||||
channelSftp.rm(filePath);
|
|
||||||
}catch(SftpException e){
|
|
||||||
String message = String.format("删除文件 : [%s] 时出错,请确认文件:[%s]存在且配置的用户有权限读取", filePath, filePath);
|
|
||||||
LOG.error(message);
|
|
||||||
throw DataXException.asDataXException(FtpReaderErrorCode.OPEN_FILE_ERROR, message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user