function OnInit(initData) { initData.name = 'PathDepth'; initData.version = '2022-11-03'; initData.copyright = ''; initData.url = 'https://resource.dopus.com/t/pathdepth-display-depth-in-folder-hierarchy/42681'; initData.desc = 'Display path depth.'; initData.default_enable = true; initData.min_version = '12.0'; } function OnAddColumns(addColData) { var col = addColData.AddColumn(); col.name = 'PathDepth'; col.method = 'OnColumn'; col.justify = 'right'; col.type = 'number'; } function OnColumn(scriptColData) { scriptColData.value = scriptColData.item.path.components; }