Complete https://github.com/pyQode/pyQode/issues/5. Add extra check when create file or directory.