Is there an update script for the custom column script that creates a colored bar based on folder size?
I am trying an existing script, but the only thing that shows up is >draw.bar 0, DD444, FFAAAA.
Thank you in advance.
Code: Select all
// draws colored bars according to the file size
$size = "<cc_size>";
switch (true){
case $size == 0: return ''; // draw nothing
case $size < 1024: return '>draw.bar ' . 100 * $size \ 1024 . ', 66CC66, BBEEBB'; //smaller 1 KB
case $size < 1048576: return '>draw.bar ' . 100 * $size \ 1048576 . ', FFBB00, FFEE88'; //smaller 1 MB
case $size < 1073741824: return '>draw.bar ' . 100 * $size \ 1073741824 . ', DD4444, FFAAAA'; //smaller 1 GB
default: return '>draw.bar ' . 100 * $size \ 1099511627776 . ', DD44AA, FFAADD'; //1 GB or more
}
XYplorer Beta Club