Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.012 Beiträge
 
#1

Delphi: do not do “if (not DirectoryExists(path))*then ForceDirectories(path))”

  Alt 26. Jul 2013, 13:20
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...
  Mit Zitat antworten Zitat