question: protected FileStore ( DataHandler handler , String name , String mode ) { this . handler = handler ; this . name = name ; try { boolean exists = FileUtils . exists ( name ) ; if ( exists && ! FileUtils . canWrite ( name ) ) { mode = "r" ; } else { FileUtils . createDirectories ( FileUtils . getParent ( name ) ) ; } file = FileUtils . open ( name , mode ) ; if ( exists ) { fileLength = file . size ( ) ; } } catch ( IOException e ) { throw DbException . convertIOException ( e , "name: " + name + " mode: " + mode ) ; } this . mode = mode ; }
target:  Create a new file using the given settings.