I used a command line from poppler which is only available in Linux in hook _file_update
I use this way to flush file in my module fileviewer, and if I run it in windows, the database lost most tables.

foreach (db_select('file_managed', 'fid')->fields('fid', array('fid'))->execute()->fetchCol() as $fid){
$file = file_load($fid);
fileviewer_file_update($file);
}

Comments

shenzhuxi’s picture

lyricnz’s picture

Project: Drupal core » File viewer
Version: 7.0 » 7.x-1.x-dev
Component: database system » Code

Looks like an issue with your module. Come back if you can reproduce, and believe that core is misbehaving.