Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

DarwinChmodMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Files MBS MacCF Plugin 3.1 Yes No No Yes, macOS only No
Function: A class to change the owner or mode of a file on Mac OS X.
dim c as DarwinChmodMBS
dim userfolder as FolderItem
dim darwinResult as Integer
dim s as string

c=new DarwinChmodMBS


darwinResult = c.chmod( s, &B111111111 ) // all rwx

// 1 = ---------x
// 2 = --------wx
// 7 = -------rwx
// 8 = ------x---


MsgBox s+" "+str(darwinResult)+" "+str(c.error)

Feedback, Comments & Corrections

  • 12 properties
    • property blocks as Double
    • property blocksize as Integer
    • property dev as Integer
    • property flags as Integer
    • property gen as Integer
    • property gid as Integer
    • property ino as Integer
    • property mode as Integer
    • property nlink as Integer
    • property rdev as Integer
    • property size as Double
    • property uid as Integer
  • 6 methods
    • method chflags(path as string, flags as Integer) as Integer
    • method chmod(path as string, mode as Integer) as Integer
    • method chown(path as string, uid as Integer, gid as Integer) as Integer
    • method error as Integer
    • method lstat(path as string) as Integer
    • method stat(path as string) as Integer

This class has no sub classes.

Some examples which use this class:

The items on this page are in the following plugins: MBS MacCF Plugin.

DADissenterMBS   -   DarwinDriveStatisticsMBS

MBS Xojo Plugins