Use the SetMediaFilename method to handle directory mappings