aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/xyz/driver/core/file.scala3
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 {