diff options
author | vlad <vlad@drivergrp.com> | 2016-11-16 16:59:36 -0800 |
---|---|---|
committer | vlad <vlad@drivergrp.com> | 2016-11-16 16:59:36 -0800 |
commit | ba439a0301bde5b45c70ed13743523f6706e013a (patch) | |
tree | 50656b817942bea5cbff6d21e85866f7d52d16db /src | |
parent | a6bd52df4ac75865528d9c87c7be15723879506c (diff) | |
download | driver-core-ba439a0301bde5b45c70ed13743523f6706e013a.tar.gz driver-core-ba439a0301bde5b45c70ed13743523f6706e013a.tar.bz2 driver-core-ba439a0301bde5b45c70ed13743523f6706e013a.zip |
Rollback for file path url decode at downloadv0.9.15
Diffstat (limited to 'src')
-rw-r--r-- | src/main/scala/xyz/driver/core/file.scala | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |