Fixed problem with ENOENT error because getMediaFilePath attempts (and fails) to create directory.