src/wcmf/lib/io/FileUtil.php
public static function urlencodeFilename($file) {
    $parts = explode('/', $file);
    $result = [];
    foreach ($parts as $part) {
      $result[] = rawurlencode($part);
    }
    return join('/', $result);
  }
public static function urlencodeFilename($file) {
    $parts = explode('/', $file);
    $result = [];
    foreach ($parts as $part) {
      $result[] = rawurlencode($part);
    }
    return join('/', $result);
  }
public static function urlencodeFilename ( $ file ) { $ parts = explode ( '/' , $ file ) ; $ result = [ ] ; foreach ( $ parts as $ part ) { $ result [ ] = rawurlencode ( $ part ) ; } return join ( '/' , $ result ) ; }
Url encode a file path
@param $file
@return String
Url encode a file path