I'm trying to upload and replace a file using google colab.
Currently what I do is
from google.colab import files
upload = files.upload()
then if I need to modify the file, I do it locally on my computer. If I upload it again using the same cell, the new version of the file will be uploaded as "filename(1)". I would like the new version to replace the old one.
What I do then is
!rm "filename"
And then I run the first cell again. But it is not great.
Is there an option like what follows ?
upload = files.upload(replace=True)