import fs from "fs-extra" ; import { removeDir } from "../ioUtil" ; param absPath export const moveToAbsPath = ( absPath ) : void => { process . chdir ( absPath ) ; } ; param relativePath export const moveToRelativePath = ( relativePath ) : void => { process . chdir ( relativePath ) ; } ; param dirName param removeIfExist export const createDirectory = ( dirName , removeIfExist = false ) : void => { if ( removeIfExist && fs . existsSync ( dirName ) ) { removeDir ( dirName ) ; } fs . mkdirpSync ( dirName ) ; } ;