Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Delphi: do not do “if (not DirectoryExists(path))*then ForceDirectories(path))” (https://www.delphipraxis.net/175893-delphi-do-not-do-%93if-not-directoryexists-path-%2Athen-forcedirectories-path-%94.html)

DP News-Robot 26. Jul 2013 13:20

Delphi: do not do “if (not DirectoryExists(path))*then ForceDirectories(path))”
 
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)) ...http://feeds.feedburner.com/~r/delph...~4/vtgpUKA83pk

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz