Skip to content

elFinderVolumeDriver::realpath return path if file not exist#1527

Closed
kukko wants to merge 3 commits intoStudio-42:masterfrom
kukko:master
Closed

elFinderVolumeDriver::realpath return path if file not exist#1527
kukko wants to merge 3 commits intoStudio-42:masterfrom
kukko:master

Conversation

@kukko
Copy link

@kukko kukko commented Jul 13, 2016

Added a parameter to the realpath method. If it is setted to true, the method return the path if file not existing. It is required because when elFinder tried to write log about rename folder/file, at the moment of logging, the file which is renamed is not existing.

kukko added 3 commits July 13, 2016 20:21
Added a parameter to the realpath method. If it is setted to true, the
method return the path if file not existing. It is required because when
elFinder tried to write log about rename folder/file, at the moment of
logging, the file which is renamed is not existing.
Added the $forcePath parameter to the elFinder::realpath method and make
it pass towards to the volume driver ::realpath method.
nao-pon added a commit that referenced this pull request Jul 14, 2016
@nao-pon
Copy link
Member

nao-pon commented Jul 14, 2016

@kukko I pushed @f638d9b748657d3ed01b7a4a009bf6b5f0b9de42. Now you can use $volume->getPath($hash) in bind function.

e.g.

function logger($cmd, $result, $args, $elfinder, $volume) {
    if (! empty($result['removed'])) {
        $removed0 = $result['removed'][0];
        $path0 = $volume->getPath($removed0);
    }
}

Thanks! 👍

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

Successfully merging this pull request may close these issues.

2 participants