About creating a file with path through API

Hi, I have encountered a problem when created a file with path like a/b/c/my.sql through API,after that,finally I got a directory named: a/b/c,actually I want to create a multiple level directory. So dose this is a feature?What should I do to achieve my goal?
Thanks in advance:)