![]() |
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
![]() |
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