You are here

protected function FeedsExJmesPath::validateCompileDirectory in Feeds extensible parsers 7

Validates that a compile directory exists and is valid.

Parameters

string $directory: A directory path.

Return value

bool True if the directory exists and is writable, false if not.

1 call to FeedsExJmesPath::validateCompileDirectory()
FeedsExJmesPath::getCompileDirectory in src/FeedsExJmesPath.inc
Returns the compilation directory.

File

src/FeedsExJmesPath.inc, line 81
Contains FeedsExJmesPath.

Class

FeedsExJmesPath
Parses JSON documents with JMESPath.

Code

protected function validateCompileDirectory($directory) {
  if (!$directory) {
    return FALSE;
  }
  return file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
}