Am 20.04.2011 16:58, schrieb Michael Van Canneyt: > > Well, > > This is the implementation of FileGetAttr: > > Function FileGetAttr (Const FileName : String) : Longint; > begin > Result:=GetFileAttributes(PChar(FileName)); > end; > > As you can see, the function returns the result of the > GetFileAttributes Win32 API call. > Why this call returns -1 is something that we cannot speculate on. > Most likely seems an error in the filesystem driver. > > Michael.
Thanks, Michael. Came to the same result. Obscure enough, I have no problems using TSearchRec attributes via FindFirst / FindNext. Maybe I still need some additional, lonesome research and the issue is sitting in front of my monitors. Wolfram _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal