-
Notifications
You must be signed in to change notification settings - Fork 120
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
Comments
I have problem with MacOS hidden files. They starts with "._". How to hide them? |
Look into $_CONFIG['hidden_files'] |
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? |
Use ._*
Or .*
To hide all files with . in front of them.
…On Nov 25, 2020 2:22 PM, "Pawel Piotrowski" ***@***.***> wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUZUBS62XK5UGEQCTCYUI3SRV7TJANCNFSM4SLHXCWQ>
.
|
Did't work. But I fixed it by changing function:
instead of
|
Awesome.
I don't speak javascript, I just assumed wildcard character would do the
trick.
…On Wed, Nov 25, 2020, 2:38 PM Pawel Piotrowski ***@***.***> wrote:
Use ._* Or .* To hide all files with . in front of them.
… <#m_1252172582494216206_>
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);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUZUBVGEJIBPMBBCWKPL73SRWBQDANCNFSM4SLHXCWQ>
.
|
Hey if you are so smart, maybe you can help me figure out how to post
clicked file link to external php file ?
I want to use different image viewing script so I need to find a way to
$_POST it somehow when I click the file
…On Wed, Nov 25, 2020, 2:38 PM Pawel Piotrowski ***@***.***> wrote:
Use ._* Or .* To hide all files with . in front of them.
… <#m_1252172582494216206_>
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);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUZUBVGEJIBPMBBCWKPL73SRWBQDANCNFSM4SLHXCWQ>
.
|
No description provided.
The text was updated successfully, but these errors were encountered: