Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
RTL
Delphi
Arithmetic
ConvUtils
Date - Time
DateUtils
File Management
Format + Float
Input/Output
Math Unit
Memory, Pointer, Address
Null-terminated strings
Other Classes
Other RTL
Pascal Strings
Regular Expressions
RTL Exceptions
Text Files
Thread support
Typed/Untyped Files
WinAPI
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/RTL/Delphi/File Management
[ Add a report in this area ]
Report #:
105161
Status:
Closed
TDirectory.IsEmpty return value is wrong
Project:
Delphi
Build #:
XE, XE2
Version:
16.4
Submitted By:
Stefan Glienke
Report Type:
Basic functionality failure
Date Reported:
4/25/2012 7:04:53 AM
Severity:
Serious / Highly visible problem
Last Updated:
9/5/2012 7:50:46 PM
Platform:
All versions
Internal Tracking #:
28247
Resolution:
Fixed
(Resolution Comments)
Resolved in Build:
:
17.0.4625.53395
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
If you call TDirectory.IsEmpty for an empty drive (where it does not have the . and .. folders) it returns False.
This is because the local variable Empty is never initialized because the delegate where it gets set is never called.
Empty should be initialized with True
Steps to Reproduce:
If you call TDirectory.IsEmpty for an empty drive (where it does not have the . and .. folders) it returns False.
---------------
program QC105161;
{$APPTYPE CONSOLE}
uses
IOUtils;
const
EmptyDrive = 'F:\';
begin
if TDirectory.IsEmpty(EmptyDrive) then
Writeln('PASS')
else
Writeln('FAIL');
Readln;
end.
---------------
Workarounds
None
Attachment
None
Comments
Tomohiro Takahashi at 5/17/2012 7:29:22 PM
-
This report was opened with valid Internal Tracking Number.
Thanks.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us