Re: Read-only error
Chris Angelico via Python-list <[email protected]> Tue, 14 Jul 2026 07:50:39 +1000
| Newsgroups | gmane.comp.python.general |
|---|---|
| Message-ID | <CAPTjJmrW2T+WkKYY43gaaaFzPPuKaMs1sr4-XBRnAtFmya+YCA@mail.gmail.com> |
On Tue, 14 Jul 2026 at 04:20, Left Right <[email protected]> wrote: > > Oh, fair enough. I made the directory write-only. My bad. So, here's > the actual behavior: > > * Cannot create files in a read-only directory. > * Can modify files (as in, file metadata s.a. ownership) in the > read-only directory. > * Can mount volumes in the read-only directory (as well as unmount). > * Can list the read-only directory. > * Can't remove files from read-only directory. > > Surprisingly, the explanation is still the same: the list of child > i-nodes in the directory is stored in the i-node allocated to the > directory. So what you're saying is.... newsflash, the contents of a directory is the directory entries. Yeah. That's by design. That's the system **working as intended**. ChrisA