Add function to parse asset directory