src/Charcoal/Admin/Action/ElfinderConnectorAction.php
public function checkAccess($attr, $path, $data, elFinderVolumeDriver $volume, $isDir, $relPath)
    {
        unset($data, $volume, $isDir);

        $basename = basename($path);
        /**
         * If file/folder begins with '.' (dot) but without volume root,
         * set to FALSE if attributes are "read" or "write",
         * set to TRUE if attributes are other ("locked" + "hidden"),
         * set to NULL to let elFinder decide itself.
         */
        return ($basename[0] === '.' && strlen($relPath) !== 1)
                ? !($attr === 'read' || $attr === 'write')
                :  null;
    }
public function checkAccess($attr, $path, $data, elFinderVolumeDriver $volume, $isDir, $relPath)
    {
        unset($data, $volume, $isDir);

        $basename = basename($path);
        /**
         * If file/folder begins with '.' (dot) but without volume root,
         * set to FALSE if attributes are "read" or "write",
         * set to TRUE if attributes are other ("locked" + "hidden"),
         * set to NULL to let elFinder decide itself.
         */
        return ($basename[0] === '.' && strlen($relPath) !== 1)
                ? !($attr === 'read' || $attr === 'write')
                :  null;
    }
public function checkAccess ( $ attr , $ path , $ data , elFinderVolumeDriver $ volume , $ isDir , $ relPath ) { unset ( $ data , $ volume , $ isDir ) ; $ basename = basename ( $ path ) ; /**
         * If file/folder begins with '.' (dot) but without volume root,
         * set to FALSE if attributes are "read" or "write",
         * set to TRUE if attributes are other ("locked" + "hidden"),
         * set to NULL to let elFinder decide itself.
         */ return ( $ basename [ 0 ] === '.' && strlen ( $ relPath ) !== 1 ) ? ! ( $ attr === 'read' || $ attr === 'write' ) : null ; }
Control file access.

This method will disable accessing files/folders starting from '.' (dot)

@param  string                $attr    Attribute name ("read", "write", "locked", "hidden").
@param  string                $path    Absolute file path.
@param  string                $data    Value of volume option `accessControlData`.
@param  \elFinderVolumeDriver $volume  ElFinder volume driver object.
@param  boolean|null          $isDir   Whether the path is a directory
(TRUE: directory, FALSE: file, NULL: unknown).
@param  string                $relPath File path relative to the volume root directory
started with directory separator.
@return boolean|null TRUE to allow, FALSE to deny, NULL to let elFinder decide.
Control file access .