directoryId null on some folders using API

Hi there!

I’m writing a crowdin app for my team, but running into an odd issue with the API. Because of legacy stuff I need to use the file-based approach, and create a directory tree for browsing.

In my frontend I want to be able to create directories, so I need to access the directoryIds to add a folder. The issue I’m having is that many directories have an ID of 0 or null, and I can’t seem to see why.

Any idea why some directories wouldn’t have a directoryID?

Hi @dylan.lauzon , you’ll get the numbers in directoryid if the folder is parent