Mercurial > cgi-bin > hgweb.cgi > JpegWasher
diff src/name/blackcap/exifwasher/exiv2/Initialize.kt @ 1:42277ce58ace
Improve exception handling; always use absolute paths on libs.
author | David Barts <n5jrn@me.com> |
---|---|
date | Tue, 31 Mar 2020 15:38:25 -0700 |
parents | db63d01a23c6 |
children | efd9fe2d70d7 |
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/exiv2/Initialize.kt Tue Mar 31 13:24:48 2020 -0700 +++ b/src/name/blackcap/exifwasher/exiv2/Initialize.kt Tue Mar 31 15:38:25 2020 -0700 @@ -45,7 +45,7 @@ die("${sPath} not found in jar") } val target = File(LF_DIR, eBase) - val tPath = target.toString() + val tPath = target.absolutePath try { if (!target.exists() || target.lastModified() < source.getTime()) { myJar.getInputStream(source).use { sfp ->