# Filesystem.mkdir not working right in Android Emulator

**URL:** <https://forum.ionicframework.com/t/filesystem-mkdir-not-working-right-in-android-emulator/199064>\
**Category:** Capacitor\
**Created:** [November 4, 2020, 1:01am UTC](https://forum.ionicframework.com/t/filesystem-mkdir-not-working-right-in-android-emulator/199064 "2020-11-04T01:01:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [November 4, 2020, 3:04am UTC](https://forum.ionicframework.com/t/filesystem-mkdir-not-working-right-in-android-emulator/199064/2 "2020-11-04T03:04:36Z")

</div>

Just so that we’re speaking the same language, please read [this post](https://forum.ionicframework.com/t/ionic-app-loading-sequence/100109/11) describing three types of functions. `mkdir` returns a `Promise`, which you’re ignoring. That’s totally a cool thing to do as long as you’re writing “type A” functions, where nobody cares when it does the work. However, you _do_ seem to care when it finishes, which means that you need to pay attention to the return value from `mkdir` and propagate it appropriately. Explicitly declaring types for the return value of every function I write helps me personally here as well. A casual reader (and your toolchain) can’t know by instant inspection whether `makePrivateDirectory` is going to tell us anything about when it’s finished.

---

_[View the full topic](https://forum.ionicframework.com/t/filesystem-mkdir-not-working-right-in-android-emulator/199064)._
