On Sat, Apr 2, 2022 at 2:46 PM Kalen Krempely <kale...@gmail.com> wrote: > > 2) As a follow up question I find it weird that VerifyDir needs to take in > both a filesystem and the root path. (ie: `VerifyDir(fsys fs.FS, dir > string)`) That is, the calling code will be something like > VerifyDir(os.DirFS("/some/path"), "/some/path"), where /some/path is passed > in twice essentially since there is no way to get the path from fs.FS. Is > this common? Or am I miss understanding something?
That is correct: there is no way to get the path from fs.FS. In general, an fs.FS can be anything that looks like a file system, such as a zip file; it need not have a path at all. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcU9UfJ5RAD7fiDw2MeV6zuGu0n7eDSdPwnhg%2B46WsTjBg%40mail.gmail.com.