Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Simplified verified_files()
Browse files Browse the repository at this point in the history
  • Loading branch information
PalNilsson committed May 14, 2019
1 parent d4f4304 commit 3b384fc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions FileHandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,10 +1048,4 @@ def find_latest_modified_file(list_of_files):
def verified_files(file_list):

# return a list of files that actually exist

_verified_files = []
for fname in file_list:
if os.path.exists(fname):
_verified_files.append(fname)

return _verified_files
return [f for f in file_list if os.path.exists(f)]

0 comments on commit 3b384fc

Please sign in to comment.