Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/RTL/Delphi/File Management    [ Add a report in this area ]  
Report #:  107117   Status: Closed
[MacOS] FindFirst fails on OS X when file name contains set of square brackets
Project:  Delphi Build #:  16.0.4504.48759
Version:    16.4 Submitted By:   Erik van Bilsen
Report Type:  Basic functionality failure Date Reported:  7/13/2012 8:34:13 AM
Severity:    Serious / Highly visible problem Last Updated: 9/5/2012 7:45:50 PM
Platform:    All Mac platforms Internal Tracking #:   29977
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
[MacOS]
FindFirst(Filename, faAnyFile, SR) fails when the Filename contains a set of square brackets, for example "Document [test].txt". (Although the file does exist).

If the filename contains just a single bracket (like "Document [Test.txt" or "Document Test].txt"), then FindFirst works fine.

Probably square brackets are treated differently on OS X (maybe used for pattern matching).
Steps to Reproduce:
See Description
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 7/16/2012 5:38:25 PM -
This report was opened with valid Internal Tracking Number.
Thanks.

Server Response from: ETNACODE01