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

[VD:LocalFileSystem] option copyJoin does not work on extract #1882

Closed
Cristiian opened this issue Feb 2, 2017 · 1 comment
Closed

[VD:LocalFileSystem] option copyJoin does not work on extract #1882

Cristiian opened this issue Feb 2, 2017 · 1 comment
Assignees

Comments

@Cristiian
Copy link

Hello, I'm using ElFinder as an option to update a php application without login in cpanel, but the problem is that every time I extract the update zip file, each directory is deleted and created again, and the zip file only includes changed files, so the result is a corrupt application.
Hope there is solution or an option I'm missing, I really like this file manager.

I followed the tutorial to integrate with Codeigniter 3.

$opts = array(
            // 'debug' => true, 
            'roots' => array(
                array(
                    'driver' => 'LocalFileSystem',
                    'path' => getcwd(),//$_SERVER["DOCUMENT_ROOT"],
                    'URL' => '/',
                    'acceptedName' => '/^[^\/\\?*:|"<>]*[^.\/\\?*:|"<>]$/',
                    'attributes' => array(
                        array(// hide file manager 1
                            'pattern' => '/_fm/',
                            'read' => false,
                            'write' => false,
                            'hidden' => true,
                            'locked' => false
                        ),
                        array(// hide vendor folder
                            'pattern' => '/vendor/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide git folder
                            'pattern' => '/.git/',
                            'read' => false,
                            'write' => false,
                            'hidden' => true,
                            'locked' => false
                        ),
                        array(// hide uploads folder
                            'pattern' => '/upload/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide uploads folder
                            'pattern' => '/database/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide uploads folder
                            'pattern' => '/application/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide uploads folder
                            'pattern' => '/config/',
                            'read' => true,
                            'write' => true,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide system folder
                            'pattern' => '/system/',
                            'read' => true,
                            'write' => FALSE,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide public folder
                            'pattern' => '/public/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide index.php file
                            'pattern' => '/index.php/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide index.php file
                            'pattern' => '/.htaccess/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                        array(// hide sql folder
                            'pattern' => '/sql/',
                            'read' => true,
                            'write' => false,
                            'hidden' => false,
                            'locked' => true
                        ),
                    ),
                )
            )
        );
        $this->load->library('elfinder_lib', $opts);
@nao-pon nao-pon self-assigned this Feb 15, 2017
@nao-pon nao-pon changed the title [Q] Avoid delete folder on extract [VD:LocalFileSystem] option copyJoin does not work on extract Feb 15, 2017
@nao-pon
Copy link
Member

nao-pon commented Feb 15, 2017

@Cristiian Thanks! 👍

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

No branches or pull requests

2 participants