Add an Exception for permission & refactor the FileTools class
Add a warn method
Implementation of warn method
Correction of regular expression in conditions