Add check of exist dir savedocument