[BUGFIX] Prevent depletion of inodes during migration
Instead of moving all files to the legacy location, creating
many folders, the migration now moves resources directly
to the final destination.
The second migration is a fallback for Flow installations
that are not fully migrated yet.
Releases: master, 3.0