mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 12:00:39 -05:00
When calling `Files\Node\Node::copy()`, `Files\View::copy()` gets called, but `Files\View::fakeRoot` is empty so the hooks are not emitted if no path is given to `Files\View::shouldEmitHooks()`. This results in node-related events like `NodeCopiedEvent` not being fired when copying files via `Files\Node\Node::copy()`. `Files\View::shouldEmitHooks()` is given a path as parameter in almost all places except when called from the `copy()` function. This commit changes it and passes the copy target path. Fixes: nextcloud/collectives#1756 Signed-off-by: Jonas <jonas@freesources.org> |
||
|---|---|---|
| .. | ||
| AppData | ||
| Cache | ||
| Config | ||
| Lock | ||
| Mount | ||
| Node | ||
| Notify | ||
| ObjectStore | ||
| Search | ||
| SimpleFS | ||
| Storage | ||
| Stream | ||
| Template | ||
| Type | ||
| Utils | ||
| FileInfo.php | ||
| FilenameValidator.php | ||
| Filesystem.php | ||
| SetupManager.php | ||
| SetupManagerFactory.php | ||
| View.php | ||