get_folder_disk
get_folder_disk($path); - this function is used to get the disk of the specified folder
The function accepts parameters as input:
$path – path to the folder to get the disk from (string). It can be either absolute or relative (relative to the script folder).
After testing, the function returns the result of its work to the script :
folder disk – the drive letter of the specified folder (string)false – there is no such folder (boolean)