package Ġio . github . g math i . no vel library . util . storage Ċ Ċ import Ġandroidx . document file . provider . Document File Ċ Ċ fun ĠDocument File . get OrCreate Directory ( displayName : ĠString ): ĠDocument File ? Ġ{ ĊĠĠĠ Ġreturn Ġ( find File ( displayName ) ĊĠĠĠĠĠĠĠ Ġ?: Ġcreate Directory ( displayName )) Ċ } Ċ Ċ fun ĠDocument File . get OrCreate File ( displayName : ĠString ): ĠDocument File ? Ġ{ ĊĠĠĠ Ġreturn Ġget OrCreate File ("* /* ", ĠdisplayName ) Ċ } Ċ Ċ fun ĠDocument File . get OrCreate File ( mime Type : ĠString , ĠdisplayName : ĠString ): ĠDocument File ? Ġ{ ĊĠĠĠ Ġreturn Ġ( find File ( displayName ) ĊĠĠĠĠĠĠĠ Ġ?: Ġcreate File ( mime Type , ĠdisplayName )) Ċ } Ċ Ċ fun ĠDocument File ?. notNull And Exists (): ĠBoolean Ġ= ĊĠĠĠ Ġthis ?. exists () Ġ?: Ġfalse