Skip to content

Commit

Permalink
check_skip_file() updated to skip folder
Browse files Browse the repository at this point in the history
If there is a folder inside the spool directory skip it
  • Loading branch information
meadhikari001 committed Oct 30, 2014
1 parent dbcbe7e commit 0d342f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphios.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,6 @@ def process_spool_dir(directory):
file_dir = os.path.join(directory, perfdata_file)
if check_skip_file(perfdata_file, file_dir):
continue
if os.path.isdir(file_dir)
continue
num_files += 1
mobjs = process_log(file_dir)
mobjs_len = len(mobjs)
Expand Down Expand Up @@ -390,6 +388,8 @@ def check_skip_file(file_name, file_dir):
# file was 0 bytes
handle_file(file_dir, 0)
return True
if os.path.isdir(file_dir):
return True
return False


Expand Down

0 comments on commit 0d342f0

Please sign in to comment.