You are here

function _demo_drush_is_file_exists in Demonstration site (Sandbox / Snapshot) 6

Implements demo_get_fileconfig().

Returns TRUE if the file with given filename exists FALSE otherwise.

3 calls to _demo_drush_is_file_exists()
demo_drush_delete_snapshot in ./demo.drush.inc
Callback for drush command demo-delete.
demo_drush_reset in ./demo.drush.inc
Callback for drush command demo-reset.
demo_drush_snapshots in ./demo.drush.inc
Callback for drush command demo-snapshot.

File

./demo.drush.inc, line 245

Code

function _demo_drush_is_file_exists($filename) {
  module_load_include('inc', 'demo', 'demo.admin');
  $files = demo_get_fileconfig($filename);
  return file_exists($files['infofile']);
}