mirror of
https://github.com/zhanghai/MaterialFiles
synced 2024-07-09 03:55:50 +00:00
Fix: Fix exception conversion in FtpCopyMove
This commit is contained in:
parent
120ddc6756
commit
4469d66ad2
|
@ -79,7 +79,7 @@ internal object FtpCopyMove {
|
||||||
try {
|
try {
|
||||||
targetOutputStream.close()
|
targetOutputStream.close()
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
throw IOException(e).toFileSystemExceptionForFtp(target.toString())
|
throw e.toFileSystemExceptionForFtp(target.toString())
|
||||||
} finally {
|
} finally {
|
||||||
if (!successful) {
|
if (!successful) {
|
||||||
try {
|
try {
|
||||||
|
@ -94,7 +94,7 @@ internal object FtpCopyMove {
|
||||||
try {
|
try {
|
||||||
sourceInputStream.close()
|
sourceInputStream.close()
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
throw IOException(e).toFileSystemExceptionForFtp(source.toString())
|
throw e.toFileSystemExceptionForFtp(source.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user