Skip to content

Commit

Permalink
Reverted change made in 4a234de
Browse files Browse the repository at this point in the history
Reverted due to this breaking `ia upload --remote-name` and
`ia upload --stdin`.
  • Loading branch information
jake authored and jake committed Dec 7, 2022
1 parent 4da3239 commit d6a820e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internetarchive/cli/ia_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,8 @@
)


def _check_files_exist(files):
return [
file for file in files
if Path(file).exists()
]


def _upload_files(item, files, upload_kwargs, prev_identifier=None, archive_session=None):
"""Helper function for calling :meth:`Item.upload`"""
# Exclude files that do not exist. (Make a copy of the list)
files = _check_files_exist(files)

# Check if the list has any element.
if not files:
raise FileNotFoundError("No valid file was found. Check your paths.")
Expand Down

0 comments on commit d6a820e

Please sign in to comment.