Then you can use the File API to do exactly that. Such as File.ls! and
File.cwd!.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Mon, May 8, 2017 at 6:26 PM, eksperimental <[email protected]>
wrote:

> They could be useful for doctests such when dealing with file and dirs
> creation and removal,
> you cd/1 a dir, and then mkdir_p, and `touch` a file and `ls` the contents
> of the specific dir,
>
>
>
> On Mon, 8 May 2017 18:17:33 +0200
> José Valim <[email protected]> wrote:
>
> > pwd and ls are not going to be effective in doctests as the results will
> be
> > highly dependent of the user directory and what is on their machine.
> >
> >
> >
> > *José Valim*
> > www.plataformatec.com.br
> > Skype: jv.ptec
> > Founder and Director of R&D
> >
> > On Mon, May 8, 2017 at 5:16 PM, eksperimental <
> [email protected]>
> > wrote:
> >
> > > José Valim <[email protected]> wrote:
> > > > We should support regular comments (a-I). We should not support
> (a-II)
> > > and
> > > > (a-III) because they are not valid in IEx.
> > >
> > > How come, since they are all treated as comments by IEx.
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "elixir-lang-core" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an
> > > email to [email protected].
> > > To view this discussion on the web visit https://groups.google.com/d/
> > > msgid/elixir-lang-core/20170508221600.66851fc4.
> > > eksperimental%40autistici.org.
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/elixir-lang-core/20170508232653.0388c5f1.
> eksperimental%40autistici.org.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BuLghNKG8EfK2qNpE01s%2BCtNW4eGWP40%2BYdTZ9e0etZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to