raise error when path not exists or not a directory
Merge branch 'master'