Google Drive sync temp files

WP-Filebase Pro Forums Remote Sync Google Drive sync temp files

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2870
    Koen Muurling
    Participant

    Hi Guys,
    I’m using WPfilebase Pro with Google Drive sync…it work allright but I’m getting some temp files or incomplete files…
    They get named ~$filename.
    Is there any way I can skip these files? Or at least not show them in the file tree?
    Koen

    #2996
    Koen Muurling
    Participant

    I ended up building in a check for ‘~’ as the first character, around line 296 in classes/Output.php :

    foreach($files as $f){
    $title = esc_html($f->file_name);
    $firstletter = substr($title, 0, 1);
    if($firstletter!=’~’){
    $file_items[$i++] = (object)array(
    ‘id’=>sprintf($file_id_format, $f->file_id),
    ‘text’=>$filesel?(‘file_id,str_replace(‘\”,’\\\”,htmlspecialchars(stripslashes($f->file_display_name)))).'”>’.esc_html($f->GetTitle(24)).’ <span style=”font-size:75%;vertical-align:top;”>’.esc_html($f->file_name).'</span>’):$f->GenTpl2(‘filebrowser’, false),
    ‘classes’=>$filesel?’file’:null,
    ‘hasChildren’=>false
    );
    }}

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.