[fpc-pascal] FileGetAttr fails on TrueCrypt partition
Michael Van Canneyt
michael at freepascal.org
Wed Apr 20 13:47:37 CEST 2011
On Wed, 20 Apr 2011, reynolight wrote:
> g: is the XP system volume. x: is the truecrypted NTFS partition. No
> problem to set / get / show file attributes with Win32 GUI on both
> volumes. Same with attrib.exe on console.
> sysutils.FileGetAttr(g:\*) is fine, as well, but FileGetAttr(x:\*)
> returns -1 as an error.
> After copying a file from x: to g:, its attributes are - surprise - ok
> again. Even bigger surprise: After re-copying from g: to x:,
> FileGetAttr(x:\...) delivers the same correct result as on g:
FileGetAttr is not supposed to accept wildcards.
More information about the fpc-pascal