question: private void copyCarbonDataFileToCarbonStorePath ( String localFileName ) throws CarbonDataWriterException { long copyStartTime = System . currentTimeMillis ( ) ; LOGGER . info ( "Copying " + localFileName + " --> " + carbonDataDirectoryPath ) ; try { CarbonFile localCarbonFile = FileFactory . getCarbonFile ( localFileName , FileFactory . getFileType ( localFileName ) ) ; String carbonFilePath = carbonDataDirectoryPath + localFileName . substring ( localFileName . lastIndexOf ( File . separator ) ) ; copyLocalFileToCarbonStore ( carbonFilePath , localFileName , CarbonCommonConstants . BYTEBUFFER_SIZE , getMaxOfBlockAndFileSize ( fileSizeInBytes , localCarbonFile . getSize ( ) ) ) ; } catch ( IOException e ) { throw new CarbonDataWriterException ( "Problem while copying file from local store to carbon store" ) ; } LOGGER . info ( "Total copy time (ms) to copy file " + localFileName + " is " + ( System . currentTimeMillis ( ) - copyStartTime ) ) ; }
target:  This method will copy the given file to carbon store location