Closed butonic closed 4 years ago
Are you sure? There can be files in /$USER/files/foo.txt but also in /$USER/thumbnails/foo.jpg
and in files_versions
and in files_trashbin
. what about uploads
? what about cache
or avatars
Yes, I am sure. the should go into separate jsonl files. files.jsonl should only contain file metadata from the users home directory, which brings us directly to the question of external storages: https://github.com/owncloud/data_exporter/issues/21
@butonic After looking further in to it I am not sure if we can do this: As /files/ is also a directory which has an etag:
{
"type": "folder",
"path": "/files",
"eTag": "5db978fd39b4f",
"permissions": 31,
"mtime": 1572436221
}
Will there be sideffects if we omit it from the export?
Introduced "/" folder in export to keep etag
The path property of entries in files.jsonl currently always has a
/files
prefix. We should drop that, so it matches the path in shares.jsonlversions and trashbin will also have to reference the files via the path. we would have to get rid of
/files
everywhere. It is completely redundant, as a users storage always starts in his home folder.