Warning: opendir(path/to/dir): failed to open dir: No such file or directory

Check if folder exists
Merge pull request #6 from bitbybit/patch-1

Warning: opendir(path/to/dir): failed to open dir: No such file or directory