mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Merge pull request #1618 from cal101/erefactor/v5-dev-project/1/jdt/jdt-ReplaceRegexpWithPlainReplaceCleanUp
[cleanup] erefactor/EclipseJdt - Replace regular expression replace w…
This commit is contained in:
@@ -339,7 +339,7 @@ public class Sftp extends AbstractFtp {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
channel.cd(directory.replaceAll("\\\\", "/"));
|
channel.cd(directory.replace('\\', '/'));
|
||||||
return true;
|
return true;
|
||||||
} catch (SftpException e) {
|
} catch (SftpException e) {
|
||||||
throw new FtpException(e);
|
throw new FtpException(e);
|
||||||
|
Reference in New Issue
Block a user