Custom column for drive letter with virtual folders
Posted: 20 Oct 2024 04:19
I've created a custom column which displays the drive letter of files and folders. The code is:
It works fine for normal folders. However, I want to use it for my virtual folders so I know which drive a particular item is on but it doesn't work. Instead of displaying the drive letter, the column displays all the paths of the virtual folder. Is there something I'm not doing right, or is it not possible for virtual folders?
The custom column settings are:
Code: Select all
$drive = getpathcomponent(, "Drive");
return $drive;The custom column settings are: