change method override to call super instead of repeating the calls

This commit is contained in:
Dimitar Todorov
2021-11-15 17:50:14 +02:00
committed by Ruslan Kuprieiev
parent 2f6b6cc586
commit fdba79c519
+1 -2
View File
@@ -138,5 +138,4 @@ class HTTPFileSystem(NoDirectoriesMixin, FSSpecWrapper):
**kwargs,
) -> None:
kwargs.setdefault("method", self.upload_method)
self.fs.put_file(from_file, to_info, callback=callback, **kwargs)
self.fs.invalidate_cache(self.path.parent(to_info))
super().put_file(from_file, to_info, callback=callback, **kwargs)