1 // Copyright 2015-present 650 Industries. All rights reserved.
2 package host.exp.exponent.utils
3 
4 import java.io.File
5 import java.io.IOException
6 
7 object ExpFileUtils {
8   @Throws(IOException::class)
ensureDirExistsnull9   fun ensureDirExists(dir: File): File {
10     if (!(dir.isDirectory || dir.mkdirs())) {
11       throw IOException("Couldn't create directory '$dir'")
12     }
13     return dir
14   }
15 }
16