You are here

function l10n_update_file_create in Localization update 7.2

Creates a file object and populates the timestamp property.

Parameters

string $filepath: The file path of a file to import.

Return value

object An object representing the file.

File

./l10n_update.bulk.inc, line 655
Mass import-export and batch import functionality for Gettext .po files.

Code

function l10n_update_file_create($filepath) {
  $file = new stdClass();
  $file->filename = drupal_basename($filepath);
  $file->uri = $filepath;
  $file->timestamp = filemtime($file->uri);
  return $file;
}