DarwinChmodMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

DarwinChmodMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Files MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
A class to change the owner or mode of a file on Mac OS X.
Example
dim c as DarwinChmodMBS
dim userfolder as FolderItem
dim darwinResult as Integer
dim s as string

c=new DarwinChmodMBS

userFolder=SpecialFolder.Desktop.Child("chmod.rb")
s=userFolder.NativePath

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

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

darwinResult=c.lstat(s)

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

This class has no sub classes.

Some examples using this class:

Blog Entries


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


DADissenterMBS   -   DarwinDriveStatisticsMBS


💬 Ask a question or report a problem