no post hooks for fopen

This commit is contained in:
Robin Appelman 2012-02-05 20:50:35 +01:00
parent e9af218562
commit fd4b30ac6f
1 changed files with 5 additions and 3 deletions

View File

@ -317,11 +317,13 @@ class OC_FilesystemView {
$result=$storage->$operation($interalPath);
}
$result=OC_FileProxy::runPostProxies($operation,$path,$result);
if($operation!='fopen'){//no post hooks for fopen, the file stream is still open
foreach($hooks as $hook){
if($hook!='read'){
OC_Hook::emit( OC_Filesystem::CLASSNAME, 'post_'.$hook, array( OC_Filesystem::signal_param_path => $path));
}
}
}
return $result;
}
}