Sujet : Re: encapsulating directory operations
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 20. May 2025, 08:27:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100hase$24odp$1@dont-email.me>
References : 1
User-Agent : Pan/0.162 (Pokrosvk)
On Tue, 20 May 2025 16:06:19 +1000, Paul Edwards wrote:
And in essence, when you read from a directory, the only thing you get
is the filename.
You want at least the type of entry as well, surely.
<
https://manpages.debian.org/readdir(3)>
If it is actually a subdirectory, then that is
indicated with a "/" at the end of the filename.
What if it’s a symlink to a directory?
Now C90 doesn't have folder/directory operations (such as opendir()) for
a reason.
Surely OSes that don’t support hierarchical directories are only fit for
the museum nowadays.