Closed querielo closed 2 years ago
Thank you for pointing out this issue, I think it's better to consistently represent the root dir as an empty string at an early stage, and I merged a pr for that https://github.com/playcanvas/playcanvas-sync/pull/42. Closing this pr.
For the "." path, ID is suggested to be equal to null (you can see it in the parent field of assets in the root directory). But right now getAssetId throws an exception here when you try to rename an asset into the root directory but parentId for "." has to be null