[fpc-pascal] TFileStream.Create and hidden files on Windows

Bart bartjunk64 at gmail.com
Thu Jan 15 18:21:53 CET 2015

On 1/15/15, Michael Van Canneyt <michael at freepascal.org> wrote:

> It seems strange that rewrite/reset handles it, because a quick search
> reveals
> that there is no handling of FILE_ATTRIBUTE_HIDDEN in the RTL.

Reset handles it, rewrite not (access denied (GetLastOSError = 5)).
TFileStream.Create with fmCreate also fails, but with GetLasOSError =
6 (invalid entry).

Chances are I replaced some Resets with TFileStream.Create when saving
the file in question.

So, in the end it's all my own doing.

Sorry for wasting your time.


More information about the fpc-pascal mailing list