0
Fixed

Hidden files and folders no longer working

Paul L 1 year ago updated by Vlad R 1 year ago 4

Since the latest update (2021.12.07), Filerun does not seem to be using the 'hidden_file_names' and 'hidden_foler_names' in the config.php located in Customizables.

This line use to hide ini files and now they are being displayed in Filerun listings...

$config['app']['hidden_file_names'][] = "*.ini";

This line use to hide the Recycle bin now it is displayed in Filerun listings...

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

Answer

Answer
Fixed

A FileRun update is now available for installation. It should fix this problem.

Under review

The change is documented in the update description and the changelog.


Please use:

$config['app']['hidden_file_names'][] = "*.ini";
$config['app']['hidden_file_names'][] = "\$*";

The changes are:

  • Hidden files and folders will still be visible and accessible via the API, WebDAV and apps.
  • Hidden files and folders can be created and uploaded by users, even if they don't show in the list.
  • Downloading a folder containing hidden files and folders, will not include these files.
  • $config['app']['hidden_folder_names'] has been deprecated.
  • $config['app']['hidden_file_names'] applies to both file and folder names and it only hides items in the web interface.
  • Dot files and folders (.*) can be now made visible, using the new option available under the control panel "Interface" section. They are hidden by default.
  • If you want to completely exclude certain file and folder names, you can use $config['app']['excluded_filenames']. Excluded files and folders will not be visible, accessible or manageable by any means.

Ok, but unfortunately that has not fixed the problem.

I have this line and yet the web interface shows all .ini files

$config['app']['hidden_file_names'][] = "*.ini";

I have this line and yet the web interface shows all .exe files

$config['app']['hidden_file_names'][] = "*.exe";

I also have this line yet the web interface shows folders like $RECYCLE.BIN

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


I know the config.php file is being read because I also have

$config['path']['trash'] = 'D:/FileRunTemp/trash/';

and the trash files are being placed in the correct folder.

Started

Please try to replace the file "system/classes/vendor/FileRun/Files/Utils.php" in your FileRun installation with this version.

Answer
Fixed

A FileRun update is now available for installation. It should fix this problem.