From 582c17d44618097840abf61d5975a87732e8a0a2 Mon Sep 17 00:00:00 2001 From: falood <falood@gmail.com> Date: Wed, 23 Aug 2017 21:36:43 -0700 Subject: [PATCH] use '/' as path separate for windows --- lib/file_system/backends/fs_windows.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file_system/backends/fs_windows.ex b/lib/file_system/backends/fs_windows.ex index c52da65..8e3d1ae 100644 --- a/lib/file_system/backends/fs_windows.ex +++ b/lib/file_system/backends/fs_windows.ex @@ -149,7 +149,7 @@ defmodule FileSystem.Backends.FSWindows do [dir, flags, file] -> {Enum.join([dir, file], "\\"), flags} [path, flags] -> {path, flags} end - {path, flags |> String.split(",") |> Enum.map(&convert_flag/1)} + {path |> Path.split() |> Path.join(), flags |> String.split(",") |> Enum.map(&convert_flag/1)} end defp convert_flag("CREATE"), do: :created -- GitLab