 
         Radpath.mktempdir("/home/lowks/Downloads")
 
+
     """
 
     @spec mktempdir(bitstring) :: none
-    def mktempdir(path) when is_bitstring(path) do
+    def mktempdir(path \\ "/tmp") when is_bitstring(path) do
       Temp.mkdir(%{basedir: path}) |> tap({_, path_name} ~> path_name)
     end
 

         File.close! filepath
    """

    @spec mktempfile(bitstring) :: bitstring
    def mktempfile(path) when is_bitstring(path) do
      # Tempfile.get_name("", [ext: ".tmp", path: path])
      Temp.open %{suffix: ".tmp", basedir: path}
    end

    @doc """
    To create a temp dir without arguments:

        Radpath.mktempdir

    """

    @spec mktempdir :: none
    def mktempdir do
      Temp.mkdir(%{basedir: "/tmp"}) |> tap({_, path_name} ~> path_name)
    end
    @doc """
    To create a temp dir at a specific location:

    ## Arguments

         "hoho"
         File.close! filepath

         {_, fd, filepath} = Radpath.mktempfile("/home/lowks/Downloads")
         IO.write fd, "hoho"
         File.read! filepath
         "hoho"
         File.close! filepath
 
     """

     @spec mktempfile(bitstring, bitstring) :: bitstring
     def mktempfile(ext \\ ".tmp", path) when is_bitstring(path) and is_bitstring(ext) do
        # Tempfile.get_name("", [ext: ext, path: path])
        Temp.open %{suffix: ext, basedir: path}
     end

    @doc """
    To create a temp file at a certain location without extension and write to it:
    ## Arguments
