Seems createDirectory simply calls mkdir, which is AFAIK a blocking call.
Is there a way to create directories async?