nextcloud-server/lib/private/Files
Jonas c952570e67
fix(node): emit hooks on `Node::copy()`
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>
2025-05-27 12:14:14 +07:00
..
AppData chore: Add SPDX header 2024-05-24 13:11:22 +07:00
Cache fix: improve error message when cache rename source can't be found 2025-05-15 15:06:55 +07:00
Config fix(SetupManager): Include home and root providers when registering mounts 2025-05-20 09:46:53 +07:00
Conversion fix: php lint extra tab fix 2025-01-17 21:37:39 +07:00
Lock chore: Add SPDX header 2024-05-24 13:11:22 +07:00
Mount fix: use proper way to get numeric storage id for mountpoint 2025-01-13 17:59:17 +07:00
Node fix: improve handling of newFolder race condition handling 2025-05-08 15:19:40 +07:00
Notify chore: Add SPDX header 2024-05-24 13:11:22 +07:00
ObjectStore Merge pull request #51779 from nextcloud/object-store-filename 2025-05-06 15:21:01 +07:00
Search fix: Forward 'extra' argument when optimizing query 2025-04-29 18:17:23 +07:00
SimpleFS fix: annotate possible exceptions 2025-05-13 22:27:19 +07:00
Storage chore: move streamCopy implementation from `OC_Helper` to `OCP\Files` 2025-05-16 13:03:05 +07:00
Stream fix: $uid type in Encryption stream 2024-10-23 13:20:40 +07:00
Template feat: only load template fields when requested 2025-05-19 17:51:25 +07:00
Type Merge pull request #52822 from nextcloud/feat/mime-names 2025-05-15 11:41:12 +07:00
Utils fix: better error message when trying to scan a folder that is already being scanned 2025-04-25 18:40:03 +07:00
FileInfo.php fix(FileInfo): correctly implement `\ArrayAccess::offsetGet` 2024-09-06 03:58:00 +07:00
FilenameValidator.php feat(FilenameValidator): allow to sanitize filenames 2025-05-13 14:14:17 +07:00
Filesystem.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +07:00
SetupManager.php feat(IUser): add `getQuotaBytes` method to get machine readable quota 2025-05-22 12:50:38 +07:00
SetupManagerFactory.php chore: Add SPDX header 2024-05-24 13:11:22 +07:00
View.php fix(node): emit hooks on `Node::copy()` 2025-05-27 12:14:14 +07:00