EverythingFolderSize (Use Everything to calculate folder sizes)

Meaning you want the column to also display the size for files?

Replace the OnColumn function in ColumnEverythingFolderSize.js with this:

function OnColumn(scriptColData) {
    var item = scriptColData.item;
    if (item.is_dir) {
        if (item.path.drive == 0) return;
        var dirVar = 'EFS"' + item + '"';
        if (!DOpus.vars.Exists(dirVar)) return;
        scriptColData.value = DOpus.vars.Get(dirVar);
    } else {
        scriptColData.value = item.size;
    }
}

I think this is controlled by Preferences / Folders / Folder Display / Show relative graphs behind size columns and only applies to built-in size columns. Would definitely be nice to have that feature available for custom columns as well, I agree.

1 Like