Skip to content

Commit

Permalink
Ensure filepath exists in to_parquet (#8057)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Aug 24, 2021
1 parent 250dce7 commit ab69fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask/dataframe/io/parquet/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def to_parquet(
)
if append:
raise ValueError("Cannot use both `overwrite=True` and `append=True`!")
if fs.isdir(path):
if fs.exists(path) and fs.isdir(path):
# Only remove path contents if
# (1) The path exists
# (2) The path is a directory
Expand Down

0 comments on commit ab69fe1

Please sign in to comment.