Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coala_html.py: Fix bug in copying angular package
The current approach depends on `os.walk` to get the content for a directory and then determines if the directory is empty. The current approach is bugy in implementation and also the approach isn't the best approach as it requires traversing the directories recursively just to make sure that parent directory is not empty. The new approach with this commit, does the job by checking for the existence of `index.html` in target directory. Since we already know the structure of target directory which happens to be a known angular package, we can just check if the `index.html` exists in the target directory. Fixes #83
- Loading branch information