From ba439a0301bde5b45c70ed13743523f6706e013a Mon Sep 17 00:00:00 2001 From: vlad Date: Wed, 16 Nov 2016 16:59:36 -0800 Subject: Rollback for file path url decode at download --- src/main/scala/xyz/driver/core/file.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/scala/xyz/driver/core/file.scala') diff --git a/src/main/scala/xyz/driver/core/file.scala b/src/main/scala/xyz/driver/core/file.scala index 9a60653..93715d0 100644 --- a/src/main/scala/xyz/driver/core/file.scala +++ b/src/main/scala/xyz/driver/core/file.scala @@ -124,8 +124,7 @@ object file { def download(filePath: Path): OptionT[Future, File] = OptionT.optionT(Future { - val path = java.net.URLDecoder.decode(filePath.toString, "UTF-8") - Option(new File(path)).filter(file => file.exists() && file.isFile) + Option(new File(filePath.toString)).filter(file => file.exists() && file.isFile) }) def delete(filePath: Path): Future[Unit] = Future { -- cgit v1.2.3