How to overwrite the existing file using databricks cli

vijaykumar99535
New Contributor III

If i use databricks fs cp then it does not overwrite the existing file, it just skip copying the file. Any suggestion how to overwrite the file using databricks cli?

Swap
New Contributor III

You can use the --overwrite option to overwrite your file.

https://docs.databricks.com/en/dev-tools/cli/fs-commands.html