Re: Read-only error

2026-07-14 Thread Left Right via Python-list
> So what you're saying is newsflash, the contents of a directory is > the directory entries. Well... This just shows you aren't familiar with the subject. There are different ways to implement hierarchical filesystems. Take, for instance, Ceph filesystem. It's built on top of an object store.

Re: Read-only error

2026-07-14 Thread Roel Schroeven
Op 14-07-2026 om 16:05 schreef Random832: On Tue, Jul 14, 2026, at 04:46, Alan Gauld via Python-list wrote: Bottom line: I think that having a FileReadOnly exception is a good idea because it more precisely reports the problem and gives users a direction for fixing it, whereas reporting permissi

Re: Read-only error

2026-07-14 Thread Alan Gauld via Python-list
On 13/07/2026 17:18, Left Right via Python-list wrote: > Both users and administrators understand permissions as a reference to > ownership. Owning X gives you permissions to do with X as you please, > including deleting it. I disagree. Ownership and access are entirely different things. I can ow

Re: Read-only error

2026-07-14 Thread Chris Angelico via Python-list
On Tue, 14 Jul 2026 at 23:52, Left Right wrote: > > > > So what you're saying is newsflash, the contents of a directory is > > the directory entries. > > Well... This just shows you aren't familiar with the subject. There are > different ways to implement hierarchical filesystems. Take, for i

Re: Read-only error

2026-07-14 Thread Karsten Hilbert via Python-list
Am Tue, Jul 14, 2026 at 10:05:32AM -0400 schrieb Random832: > The problem is that if Python wants to provide information > that isn't provided in the error code from the operating > system, it has to do a complex and potentially expensive > root cause analysis on its own, checking for all the > po

Re: Read-only error

2026-07-14 Thread Random832
On Tue, Jul 14, 2026, at 04:46, Alan Gauld via Python-list wrote: >> Bottom line: I think that having a FileReadOnly exception is a good >> idea because it more precisely reports the problem and gives users a >> direction for fixing it, whereas reporting permissions error doesn't. > > I don't disag