Skip to content
Snippets Groups Projects
Commit 582c17d4 authored by falood's avatar falood
Browse files

use '/' as path separate for windows

parent e1847e63
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment