Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide all files which starts with "._" at the beginning? #82

Open
INDIGI-CO-UK opened this issue Oct 10, 2020 · 7 comments
Open

Comments

@INDIGI-CO-UK
Copy link

No description provided.

@INDIGI-CO-UK
Copy link
Author

I have problem with MacOS hidden files. They starts with "._". How to hide them?

@tonycstech
Copy link

Look into $_CONFIG['hidden_files']
I have
$_CONFIG['hidden_files'] = array(".ftpquota", "index.php", "index.php~", ".htaccess", ".htpasswd", ".php", "*.html");
You may need $CONFIG['hidden_files'] = array(".");
as simple as that

@INDIGI-CO-UK
Copy link
Author

Look into $_CONFIG['hidden_files']
I have
$_CONFIG['hidden_files'] = array(".ftpquota", "index.php", "index.php~", ".htaccess", ".htpasswd", ".php", "*.html");
You may need $CONFIG['hidden_files'] = array(".");
as simple as that

MacOS generate a hidden file with a dot for ALL files in the folder. So, what should I do if I have 20000+ files with different names?

@tonycstech
Copy link

tonycstech commented Nov 25, 2020 via email

@INDIGI-CO-UK
Copy link
Author

Use ._* Or .* To hide all files with . in front of them.

Did't work.

But I fixed it by changing function:

else if(!in_array($object, EncodeExplorer::getConfig('hidden_files')) && !preg_match('/^._.*/i', $object)) $this->files[] = new File($object, $this->location);

instead of

else if(!in_array($object, EncodeExplorer::getConfig('hidden_files'))) $this->files[] = new File($object, $this->location);

@tonycstech
Copy link

tonycstech commented Nov 25, 2020 via email

@tonycstech
Copy link

tonycstech commented Nov 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants