0
Answered

Can't hide items beginning with tilde ("~") in advanced configuration

Matt V 6 months ago updated 6 months ago 1

Hi Vlad,

Microsoft Word places auto-save files on the NAS that begin with the characters tilde dollar-sign "~$" (i.e. "~$at you need to know.docx"). I know from advanced configuration you can hide items beginning with certain characters. I have implemented this successfully with the underscore ("_") and it works great. However I cannot get Filerun to hide items beginning with the tilde. I have tried escaping the characters in the configuration file, but also does not work.

Here are my attempted configurations in /var/www/[webroot]/customizables/config.php:

Does not work:

$config['app']['hidden_folder_names'][] = "~$*";
$config['app']['hidden_folder_names'][] = "\~\$*";
$config['app']['hidden_folder_names'][] = "~*";
$config['app']['hidden_folder_names'][] = addslashes("~$*");

Working successfully:

$config['app']['hidden_folder_names'][] = "_*";

Answer

Answer
Answered

Sorry, I figured it out. Looks like I was confusing files and folders. To hide files beginning with certain characters, you must use the configuration line:

$config['app']['hidden_file_names'][] = "~$*"

Answer
Answered

Sorry, I figured it out. Looks like I was confusing files and folders. To hide files beginning with certain characters, you must use the configuration line:

$config['app']['hidden_file_names'][] = "~$*"