set_hidden
set_hidden($path,$on=true); - this function is used to set the attribute HIDDEN for the specified folder
the function accepts parameters as input:
$path – path to the folder whose attribute we want to set (string). It can be either absolute or relative (relative to the script folder).
$on – flag : set or remove attribute (boolean). If is true sets the attribute, and if is false removes the specified attribute. (Available from version 4.6.3)
After testing, the function returns the result of its work to the script :
true – successfully set the attribute for the specified folder (boolean)false – there is no such folder (boolean)