File tree 1 file changed +4
-2
lines changed
spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
import java .io .IOException ;
20
20
import java .io .InputStream ;
21
21
import java .io .OutputStream ;
22
+ import java .io .UncheckedIOException ;
22
23
import java .time .Duration ;
23
24
import java .util .ArrayList ;
24
25
import java .util .List ;
@@ -269,7 +270,7 @@ public boolean rmdir(String remoteDirectory) throws IOException {
269
270
}
270
271
271
272
@ Override
272
- public boolean exists (String path ) throws IOException {
273
+ public boolean exists (String path ) {
273
274
try {
274
275
this .channel .lstat (path );
275
276
return true ;
@@ -279,7 +280,8 @@ public boolean exists(String path) throws IOException {
279
280
return false ;
280
281
}
281
282
else {
282
- throw new NestedIOException ("Cannot check 'lstat' for path " + path , ex );
283
+ throw new UncheckedIOException ("Cannot check 'lstat' for path " + path ,
284
+ new IOException (ex ));
283
285
}
284
286
}
285
287
}
You can’t perform that action at this time.
0 commit comments