On 3/19/20, Aron Zvi <aron...@gmail.com> wrote: > Hey guys, > > In part 4 section 20.3 Refining Functions I am using (require htdp/dir) > and (create-dir DIR-PATH). I get back a Dir instance with name value being > a full path symbol of the folder. ie. (make-dir > '/Users/SSS/Documents/xyz empty empty). > This does not seem to be in line with the exercises in the section where it > seems that I should be getting back just the folder name. > I am missing something?
Nope, you're supposed to get a dir structure. When I call create-dir with a full path, I get a struct with a full path symbol inside. But when I call create-dir with just the folder name, the struct only contains the folder name. Maybe that explains the confusion with the exercises? But! create-dir does not return a Dir.v3 as section 20.3 says. See the docs for htdp/dir for the correct data definitions: https://docs.racket-lang.org/teachpack/dir.html -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAFUu9R4tSkd4-iuXDZ1sEN2wYcRbXHOGEP44GY8Nw63rXHYwLw%40mail.gmail.com.