 
         refute File.exists?(src)
       after
-        File.rm_rf src
-        File.rm_rf dest
+        File.rm_rf(src)
+        File.rm_rf(dest)
       end
     end
 
     test "rename dir to non-existing parent location" do
-      src  = tmp_fixture_path("cp_r")
+      src = tmp_fixture_path("cp_r")
       dest = tmp_path("tmp/a/b")
 
       try do

        assert File.exists?(base)
        assert File.exists?(fixture)
      after
        File.rm_rf base
      end
    end

    test "mkdir_p with nested directory and list" do
      base    = tmp_path("tmp_test") |> to_charlist
      fixture = Path.join(base, "test")
      refute File.exists?(base)


        assert File.rename(src, dest) == :ok
        assert File.exists?(src)
      after
        File.rm_rf(src)
        File.rm_rf(dest)
      end
    end

    test "rename dir to existing file" do
      src = tmp_fixture_path("cp_r")
      dest = tmp_path("tmp.file")

      try do
        File.touch(dest)
        assert File.rename(src, dest) == {:error, :enotdir}
      after
        File.rm_rf(src)
        File.rm_rf(dest)
      end
    end

    test "rename dir to non-existing leaf location" do
      src = tmp_fixture_path("cp_r")
      dest = tmp_path("tmp")

      try do
