File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -671,6 +671,8 @@ def upload(
671671 uploadf : BufferedReader ,
672672 serverpath : str ,
673673 datemodified : datetime .datetime ,
674+ nofileoverwrite : bool = False ,
675+ iflastmodified : Optional [datetime .datetime ] = None ,
674676 adminproxyuserid : Optional [str ] = None ,
675677 progress : Optional [Progress ] = None ,
676678 ) -> None :
@@ -799,6 +801,10 @@ def close(self):
799801 "filesize" : 0 ,
800802 "date" : self ._serverdatetime (datemodified ),
801803 "adminproxyuserid" : adminproxyuserid ,
804+ "nofileoverwrite" : nofileoverwrite ,
805+ "iflastmodified" : (
806+ self ._serverdatetime (iflastmodified ) if iflastmodified else None
807+ ),
802808 }
803809 params_str = urlencode (params )
804810
@@ -840,6 +846,10 @@ def close(self):
840846 "filename" : name ,
841847 "date" : self ._serverdatetime (datemodified ),
842848 "adminproxyuserid" : adminproxyuserid ,
849+ "nofileoverwrite" : nofileoverwrite ,
850+ "iflastmodified" : (
851+ self ._serverdatetime (iflastmodified ) if iflastmodified else None
852+ ),
843853 }
844854
845855 if data_size is not None :
Original file line number Diff line number Diff line change 11[tool .poetry ]
22
33name = " filecloudapi-python"
4- version = " 0.2.1 "
4+ version = " 0.3.0 "
55description = " A Python library to connect to a Filecloud server"
66
77packages = [{ include = " filecloudapi" }]
You can’t perform that action at this time.
0 commit comments