Os.path.isempty() & pathlib.Path.is_empty()

I didn’t mean it wasn’t my fault. I simply meant that my reply must not have been grouped with the other messages because I decided to rename the post title.

I did post this in the thread:

I believe it makes more sense the other way around: isempty.
I also removed the hardlinks implementation as it was subjective.
Is this new classification of empty files and directories more intuitive?

  • A directory containing no files nor subdirectories (excluding . & ..)
  • A zero-byte file
  • A junction (if follow_symlinks is disabled)
  • A symlink (if follow_symlinks is disabled)

No, that message is there, it’s this one at my end:

 06Apr2024 06:41 Nice Zombies

(That 06:41 is in my local timezone.) It doesn’t show your title change
because you changed it after the email went out, so I have the old
title. But I did get the message.

Email threads are not grouped based on their subject lines, they have
headers expressing the reply chain.

Then you must simply have replied before reading the rest of the messages, which I also do occasionally.
I’ll try to always post corrections in the future in addition to editing the post (not the title).

I want to stress it again: do not edit posts. It’s like changing the subject each time a constructive debate begins. It doesn’t help, and for someone who has not been part of the discussion from the beginning, they won’t be able to participate. It’s nearly impossible.

3 Likes

Substantive edits are also extremely rude to the people who receive these posts by email, since they are then forced to come to the web interface to see the edit.

I have several concerns. One is to echo what others have said, which is that this is a specific application’s definition of “there’s nothing important here”, not a generally used one applicable across a wide range. A second one is related: metadata is often important, so a definition of “no data” that disregards metadata is not a good one. A way to see this is that, in file system semantics, there is a real difference between “file xyz does not exist” and “file xyz exists even though it is empty”.
Lastly: a sequence of checks like this is inherently inaccurate in the face of concurrent file system operations.

2 Likes