You are here

public function ImceFM::checkFolder in IMCE 8.2

Same name and namespace in other branches
  1. 8 src/ImceFM.php \Drupal\imce\ImceFM::checkFolder()

Checks if the user provided folder path is accessible.

Parameters

string $path: The patchs folder.

Return value

object Returns the folder object with the path.

3 calls to ImceFM::checkFolder()
ImceFM::buildPage in src/ImceFM.php
Builds file manager page.
ImceFM::checkItem in src/ImceFM.php
Checks the existence of a user provided item path.
ImceFM::getInitError in src/ImceFM.php
Performs the initialization and returns the first error message.

File

src/ImceFM.php, line 270

Class

ImceFM
Imce File Manager.

Namespace

Drupal\imce

Code

public function checkFolder($path) {
  if (is_array(Imce::folderInConf($path, $this->conf))) {
    return $this
      ->addFolder($path);
  }
}