mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
fs.put_file: don't require size to be passed
This commit is contained in:
committed by
Saugat Pachhai
parent
ae4f56c5ad
commit
e30d2fdda5
+1
-1
@@ -316,9 +316,9 @@ class FileSystem:
|
||||
from_file: Union[AnyFSPath, IO],
|
||||
to_info: AnyFSPath,
|
||||
callback: FsspecCallback = DEFAULT_CALLBACK,
|
||||
size: int = None,
|
||||
**kwargs,
|
||||
) -> None:
|
||||
size = kwargs.pop("size", None)
|
||||
if size:
|
||||
callback.set_size(size)
|
||||
if hasattr(from_file, "read"):
|
||||
|
||||
Reference in New Issue
Block a user