package Ġbr . com . game mods . k oter ite . filesystem Ċ Ċ actual Ġinline Ġclass ĠFile Ġactual Ġconstructor ( actual Ġval Ġhandler : ĠFile Handler ) Ġ: ĠComparable < File > Ġ{ ĊĠĠĠ Ġactual Ġconstructor ( path : ĠString ) Ġ: Ġthis ( File Handler ( path )) ĊĠĠĠ Ġactual Ġconstructor ( parent : ĠString ?, Ġchild : ĠString ) Ġ: Ġthis ( File Handler ( parent , Ġchild )) ĊĠĠĠ Ġactual Ġconstructor ( parent : ĠFile ?, Ġchild : ĠString ) Ġ: Ġthis ( File Handler ( parent ?. handler , Ġchild )) ĊĊĠĠĠ Ġactual Ġfun Ġlist () Ġ= Ġhandler . list ()?. toList () ĊĠĠĠ Ġactual Ġfun Ġlist Files (): ĠList < File >? Ġ= Ġhandler . list Files ()?. map (:: File ) ĊĊĠĠĠ Ġactual Ġfun Ġcan Read () Ġ= Ġhandler . can Read () ĊĠĠĠ Ġactual Ġfun Ġcan Write () Ġ= Ġhandler . can Write () ĊĠĠĠ Ġactual Ġfun Ġexists () Ġ= Ġhandler . exists () ĊĠĠĠ Ġactual Ġfun Ġcreate New File () Ġ= Ġhandler . createNew File () ĊĠĠĠ Ġactual Ġfun Ġdelete () Ġ= Ġhandler . delete () ĊĠĠĠ Ġactual Ġfun Ġdelete On Exit () Ġ= Ġhandler . delete On Exit () ĊĠĠĠ Ġactual Ġfun Ġmkdir () Ġ= Ġhandler . mkdir () ĊĠĠĠ Ġactual Ġfun Ġmkdir s () Ġ= Ġhandler . mkdir s () ĊĠĠĠ Ġactual Ġfun Ġrename To ( dest : ĠFile ) Ġ= Ġhandler . rename To ( dest . handler ) ĊĠĠĠ Ġactual Ġfun Ġset LastModified ( time : ĠLong ) Ġ= Ġhandler . set LastModified ( time ) ĊĠĠĠ Ġactual Ġfun Ġset ReadOnly () Ġ= Ġhandler . set ReadOnly () ĊĠĠĠ Ġactual Ġfun Ġset Writable ( writable : ĠBoolean , Ġowner Only : ĠBoolean ) Ġ= Ġhandler . set Writable ( writable , Ġowner Only ) ĊĠĠĠ Ġactual Ġfun Ġset Readable ( readable : ĠBoolean , Ġowner Only : ĠBoolean ) Ġ= Ġhandler . set Readable ( readable , Ġowner Only ) ĊĠĠĠ Ġactual Ġfun Ġset Executable ( executable : ĠBoolean , Ġowner Only : ĠBoolean ) Ġ= Ġhandler . set Executable ( executable , Ġowner Only ) ĊĠĠĠ Ġactual Ġfun Ġcan Execute () Ġ= Ġhandler . can Execute () ĊĠĠĠ Ġactual Ġoverride Ġfun ĠtoString () Ġ= Ġhandler . toString () ĊĠĠĠ Ġoverride Ġfun Ġcompare To ( other : ĠFile ) Ġ= Ġhandler . compareTo ( other . handler ) Ċ } Ċ