Recent

Author Topic: FileGetAttr - work on Linux FPC 2.2.4?  (Read 5276 times)

Fred556

  • New Member
  • *
  • Posts: 26
    • Copy Protection Software
FileGetAttr - work on Linux FPC 2.2.4?
« on: November 02, 2009, 05:50:55 pm »
Hello,

work the command FileGetAttr right on Linux FPC 2.2.4?

When I set a file in windows set then attrib hidden system and archive can I check them in linux?

DOS: attrib +h +s +a file

Can I check this with FileGetAttr right in linux?
How?
Programmer Software and other copy protection tools.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
Re: FileGetAttr - work on Linux FPC 2.2.4?
« Reply #1 on: November 02, 2009, 05:57:18 pm »
Afaik hidden and archive don't exist on Linux file systems.
I don't know about FAT or NTFS drives.

Fred556

  • New Member
  • *
  • Posts: 26
    • Copy Protection Software
Re: FileGetAttr - work on Linux FPC 2.2.4?
« Reply #2 on: November 02, 2009, 06:08:39 pm »
Hello,

mean on Fat32 USB Flash Drives. Is there a way to check this with freepascal?
Programmer Software and other copy protection tools.

Fred556

  • New Member
  • *
  • Posts: 26
    • Copy Protection Software
Re: FileGetAttr - work on Linux FPC 2.2.4?
« Reply #3 on: November 02, 2009, 08:37:34 pm »
Hi,

I found follow:
http://mantis.freepascal.org/bug_view_page.php?bug_id=13431&history=1

This tell about a bug in V 2.2.5 in the FileGetAttr function. Does the problem fixed? And where I can download fixed sysutils.pas?

A other question. Why does not exists AssignFile, Closefile, Rewrite, Reset, ... in Sysutils in pure freepascal?
Programmer Software and other copy protection tools.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
Re: FileGetAttr - work on Linux FPC 2.2.4?
« Reply #4 on: November 02, 2009, 10:52:38 pm »
I found follow:
http://mantis.freepascal.org/bug_view_page.php?bug_id=13431&history=1
This tell about a bug in V 2.2.5 in the FileGetAttr function. Does the problem fixed? And where I can download fixed sysutils.pas?
It is not related to your problem afaics. Plus it is "suspended" not "fixed"
It think it's not possible to get the attributes you want on unix.

A other question. Why does not exists AssignFile, Closefile, Rewrite, Reset, ... in Sysutils in pure freepascal?
? They do exist. They are part of the system afaik. You don't need an extra unit.

 

TinyPortal © 2005-2018