Content
Considerations about files and fileIds in Nextcloud to keep in mind
item here means files or folder
- items don't have a creator or modifier attribute, only owner
- items ownership is changed (but not the id) when a user receives a folder as a share and moves an item out of the share to an other location
- if a user is deleted all items that are owned by the user are deleted
- a received shared item can be renamed and that name will not be propagated to the owner or other share receivers
- a rename of an item in a received folder share will be propagated to the owner and other share receivers
- multiple names can be associated with the same fileId. e.g. :
- James has a folder called "Documents" with a file called "important.doc"
- James shares folder "Documents" with Peter
- James shares separately "Documents/important.doc" with Peter
- Peter will have receiver "important.doc" twice but both "location" of the file will have the same fileId
- when Peter takes the fileId and queries for its name
OCP\Filles\Folder::getById()
he will receive two objects and in case he renamed one of the representations of the file both of the objects will show different names
Julien approves all above statements.