Only do an import if the directory exists and delete that directory when
finishing an import.