function OnInit(initData) { initData.name = 'EverythingFolderSize'; initData.version = '2023-05-02'; initData.copyright = ''; initData.url = 'https://resource.dopus.com/t/everythingfoldersize-use-everything-to-calculate-folder-sizes/44281'; initData.desc = ''; initData.default_enable = true; initData.min_version = '12.0'; } function OnAddColumns(addColData) { var col = addColData.AddColumn(); col.name = 'EverythingFolderSize'; col.header = 'EFS'; // col.label = 'EverythingFolderSize'; col.method = 'OnColumn'; col.justify = 'right'; col.type = 'size'; } function OnColumn(scriptColData) { var item = scriptColData.item; if (!item.is_dir) return; if (item.path.drive == 0) return; var dirVar = 'EFS"' + item + '"'; if (!DOpus.vars.Exists(dirVar)) return; scriptColData.value = DOpus.vars.Get(dirVar); }