Create directory (if necessary) to write asset data from memory