PB4 Mac: Constant "#PB_FileSystem_Archive" not de

Mac OSX specific forum
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

PB4 Mac: Constant "#PB_FileSystem_Archive" not de

Post by michel51 »

While using the constant #PB_FileSystem_Archive an errot occures:
"Constant not found".
A look into the constant list tells me, that's right. The constant ist really not defined.
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Fred
Administrator
Administrator
Posts: 18397
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Yes, the PB_FileSystem_Archive flag is Windows only, as there is no similar attribute on Linux or OS X
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

On Linux and OSX, this command returns the file access flags. These are the constants:
(the help is updated for the next version already)

Code: Select all

  #PB_FileSystem_Link      : The file is a symbolic link
  #PB_FileSystem_ReadUser  : Access flags for the owning user
  #PB_FileSystem_WriteUser
  #PB_FileSystem_ExecUser
  #PB_FileSystem_ReadGroup : Access flags for the owning user's group
  #PB_FileSystem_WriteGroup
  #PB_FileSystem_ExecGroup
  #PB_FileSystem_ReadAll   : Access flags for all other users
  #PB_FileSystem_WriteAll
  #PB_FileSystem_ExecAll
quidquid Latine dictum sit altum videtur
Post Reply