Skip to content

Commit

Permalink
[bug-fix] Fix issue about dir starts with .
Browse files Browse the repository at this point in the history
  • Loading branch information
vra committed Nov 21, 2019
1 parent 8585451 commit 0fe38cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dompare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def diff_two_files(path1, path2, root_html_path):
f.close()



def diff_two_directories(logger, dir1, dir2, tmp_file, exclude):
paths = os.listdir(dir1)

Expand All @@ -110,7 +109,7 @@ def diff_two_directories(logger, dir1, dir2, tmp_file, exclude):
path1 = os.path.join(dir1, path)
path2 = os.path.join(dir2, path)

if os.path.isdir(path1) and not path1.startswith('.'):
if os.path.isdir(path1):
logger.debug('Processing dir {}'.format(path1))
diff_two_directories(logger, path1, path2, tmp_file, exclude)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="dompare",
version="0.0.6",
version="0.1.0",
keywords=("dompare", "Linux", 'diff', 'directories'),
description="A program to diff two directories recursively",
long_description="dompare is program to diff same name iles in two directories recursively",
Expand Down

0 comments on commit 0fe38cd

Please sign in to comment.