FileException when calling getTimes on a DirEntry
kdevel
kdevel at vogtner.de
Sun Dec 24 21:18:44 UTC 2023
On Sunday, 24 December 2023 at 20:00:15 UTC, Renato wrote:
> I asked what could be causing an Exception in my code to happen
> as that was quite unexpected.
As I already wrote: Your code tries to fetch the meta-data for an
object that does not exist.
> [..]
> Have you ever seen a symlink like the one I'd posted?
>
> ```
> .#hi.txt -> renato at renato.902129:1701726658
> ```
It depends on what counts as "like". If I ask google for an
explanation of your observation, e.g. by asking
hidden dangling symlink with username at sign
it leads me more or less directly to
https://github.com/roxiness/routify/issues/258
"Emacs by default uses dangling symbolic links to guard
against
accidentally editing the same file from two editors"
Know your tools!
> Does that look like your regular symlink?
The name is a valid filename and so is the value. What makes this
symlink irregular? That it is a dangling symlink?
> I don't think it does... that's what I was actually trying to
> find out and hoped others here would've seen this weird
> behaviour before.
I would have expected you asking questions like "Which program
might have generated that symlink?", "How do I get the meta-data
from the
symlink and not from the file it points to ?" or "How do I handle
that exception?".
More information about the Digitalmars-d-learn
mailing list