During code reviews, I often see people do things like this: if (not DirectoryExists(Path))*then ForceDirectories(Path)) or this: if (not TDirectory.Exists(Path))*then TDirectory.CreateDirectory((Path)) Half a year ago, I wrote about*.NET/C#: do not do “if (!Directory.Exists(path)) ...
More...