Enable post_write trigger
This is used when uploading a file with webdav. The trigger will add the file to the cache and make it show up in listings
This commit is contained in:
parent
78a022fda6
commit
e3e4a2bec2
1 changed files with 2 additions and 2 deletions
|
@ -295,12 +295,12 @@ class OC_FilesystemView {
|
||||||
OC_Filesystem::signal_post_create,
|
OC_Filesystem::signal_post_create,
|
||||||
array( OC_Filesystem::signal_param_path => $path)
|
array( OC_Filesystem::signal_param_path => $path)
|
||||||
);
|
);
|
||||||
}/*
|
}
|
||||||
OC_Hook::emit(
|
OC_Hook::emit(
|
||||||
OC_Filesystem::CLASSNAME,
|
OC_Filesystem::CLASSNAME,
|
||||||
OC_Filesystem::signal_post_write,
|
OC_Filesystem::signal_post_write,
|
||||||
array( OC_Filesystem::signal_param_path => $path)
|
array( OC_Filesystem::signal_param_path => $path)
|
||||||
);*/
|
);
|
||||||
OC_FileProxy::runPostProxies('file_put_contents', $absolutePath, $count);
|
OC_FileProxy::runPostProxies('file_put_contents', $absolutePath, $count);
|
||||||
return $count > 0;
|
return $count > 0;
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in a new issue