GetPathType - hossimo/GMA3Plugins GitHub Wiki
FunctionName(dataobject: target) : string
Brief:
⚠ Need more examples of proper paths ⚠
Paramiters:
| Name | Type | Description | Optional |
|---|---|---|---|
| target | dataobject | Gives the path type of a dataobject |
Returns:
| Type | Description |
|---|---|
| string | returns the path type. |
Examples:
local cp = CurrentProfile()
local cu = CurrentUser()
local dp = DataPool()
local pr = Programmer()
Echo(GetPathType(cp)) -- user_profiles
Echo(GetPathType(cu)) -- config
Echo(GetPathType(dp)) -- export
Echo(GetPathType(pr)) -- export