Have File.rename/2 and File.copy/2 check path types (#11977)
Have File.rename/2 and File.copy/2 check path types (#11977)

* File.rename/2 checks path type

* File.copy/2 checks path type
michalmuskala/elixir,elixir-lang/elixir