On Sun, May 15, 2022 at 11:57 PM Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:
> On 16/05/22 5:05 pm, Christopher Barker wrote: > > a directory is not a binary artifact -- it can't have actually data in > > it like a file can. > > and: > > > the entire > > point of resources is to provide an abstraction -- the individual > > resources may not be files on disk at all > > These two statements are contradictory. > I have no idea why you say that. > If a resource is an abstraction, why can't it be represented by > a collection of files in a directory rather than a single file? > if you want to call your collection of files a single resource, then sure -- but then it's not the directory that's the resource, it's the collection of files that's the resource -- again, it's an abstraction. I see this a bit like how you can't add an empty directory to git -- a directory has no information to add -- i.e. the path is not the file, and a directory is only part of a path. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/NMNWTOKSZ3KKPDPW6ME2SN7LHPWRU6OO/ Code of Conduct: http://python.org/psf/codeofconduct/