You are here

function uif_plus_normalise_filepath in User Import Framework Plus 7

Helper function to remove trailing slashes from file paths

Parameters

string $filepath:

Return value

string

1 call to uif_plus_normalise_filepath()
uif_plus_upload_file in ./uif_plus.module
Handle file uploads for image and file fields

File

./uif_plus.module, line 222
Advanced user import from a CSV file.

Code

function uif_plus_normalise_filepath($filepath) {
  if (drupal_substr($filepath, -1) == DIRECTORY_SEPARATOR) {
    $filepath = drupal_substr($filepath, 0, -1);
  }
  return $filepath;
}