Skip to content

Commit df49f29

Browse files
authored
Use raw mode to delete files (#1288)
1 parent c422454 commit df49f29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/plug/upload.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ defmodule Plug.Upload do
248248
end
249249

250250
defp delete_path({_pid, path}) do
251-
:file.delete(path)
251+
:file.delete(path, [:raw])
252252
:ok
253253
end
254254
end

lib/plug/upload/terminator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule Plug.Upload.Terminator do
2121
end
2222

2323
defp delete_path({_pid, path}) do
24-
:file.delete(path)
24+
:file.delete(path, [:raw])
2525
:ok
2626
end
2727
end

0 commit comments

Comments
 (0)