[Issue 15102] Unified function to remove files/directories
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Oct 15 12:33:20 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15102
--- Comment #2 from Jacob Carlborg <doob at me.com> ---
(In reply to Vladimir Panteleev from comment #1)
> Why? This corresponds to neither how the OS APIs work nor how it's done in
> the shell - there are separate commands to remove a file, directory or a
> directory and its contents.
I don't think that matters at all. Why would we build all these abstractions in
the first place?
> If the program created a file/directory, it should already know what sort of
> filesystem object it is. I can't think of many situations where this would
> be useful.
Yes, but I can't imagine why I would want to use separate API's for that. Do
you want to use different operators for addition for "long" and for "int" as
well? I mean, I assume you know what type it is.
--
More information about the Digitalmars-d-bugs
mailing list