You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
targetsuses paws for S3 storage, and it needs to check if the object exists before knowing how to proceed. Is it possible to efficiently check the existence of an object without generating an error if the object does not exist? The existing tryCatch(..., http_400 = ...) workaround seems okay, but http_400 could include other kinds of errors than a missing object.
The text was updated successfully, but these errors were encountered:
Hi @wlandau, I don't think this answers your question fully but you could be more specific with the error check. Instead of using http_400 you could use http_404 . This will make sure you don't accidentally mask any 403 Forbidden code errors (I beleive access permission falls into this).
Alternatively, could call s3fs::s3_file_exists() which will return a logical value (or give an error if the permissions prohibit access). Also it is vectorized!
targets
usespaws
for S3 storage, and it needs to check if the object exists before knowing how to proceed. Is it possible to efficiently check the existence of an object without generating an error if the object does not exist? The existingtryCatch(..., http_400 = ...)
workaround seems okay, buthttp_400
could include other kinds of errors than a missing object.The text was updated successfully, but these errors were encountered: