private static function parseDirective($directive) {
    #directive example => vendor:koodimonni-language:file1,file2,file3...
    #so type would be 'vendor';
    $parsed_directive = explode(':', $directive);
    $type = $parsed_directive[0];
    $target = $parsed_directive[1];
    if (isset($parsed_directive[2])) {
      $files = explode(',', $parsed_directive[2]);
    } else {
      $files = NULL;
    }
    if(!$type || !$target) return false;

    return array( "type" => $type, "target" => $target, "files" => $files);
  }