I've created a custom column which displays the drive letter of files and folders. The code is:
Code: Select all
$drive = getpathcomponent(, "Drive");
return $drive;
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?

- 2024-10-20_150435.png (43.85 KiB) Viewed 1465 times
The custom column settings are:

- 2024-10-20_151535.png (10.4 KiB) Viewed 1465 times