Checks format of media directories and filenames