@@ -615,33 +615,42 @@ def upload_bytes(
615615 data : bytes ,
616616 serverpath : str ,
617617 datemodified : datetime .datetime = datetime .datetime .now (),
618+ nofileoverwrite : Optional [bool ] = False ,
619+ iflastmodified : Optional [datetime .datetime ] = None ,
618620 progress : Optional [Progress ] = None ,
619621 ) -> None :
620622 """
621623 Upload bytes 'data' to server at 'serverpath'.
622624 """
623- self .upload (BufferedReader (BytesIO (data )), serverpath , datemodified , progress = progress ) # type: ignore
625+ self .upload (BufferedReader (BytesIO (data )), serverpath , datemodified , nofileoverwrite = nofileoverwrite , iflastmodified = iflastmodified , progress = progress ) # type: ignore
624626
625627 def upload_str (
626628 self ,
627629 data : str ,
628630 serverpath : str ,
629631 datemodified : datetime .datetime = datetime .datetime .now (),
632+ nofileoverwrite : Optional [bool ] = False ,
633+ iflastmodified : Optional [datetime .datetime ] = None ,
630634 progress : Optional [Progress ] = None ,
631635 ) -> None :
632636 """
633637 Upload str 'data' UTF-8 encoded to server at 'serverpath'.
634638 """
635639 self .upload_bytes (
636- data .encode ("utf-8" ), serverpath , datemodified , progress = progress
640+ data .encode ("utf-8" ),
641+ serverpath ,
642+ datemodified ,
643+ nofileoverwrite = nofileoverwrite ,
644+ iflastmodified = iflastmodified ,
645+ progress = progress ,
637646 )
638647
639648 def upload_file (
640649 self ,
641650 localpath : pathlib .Path ,
642651 serverpath : str ,
643652 datemodified : datetime .datetime = datetime .datetime .now (),
644- nofileoverwrite : bool = False ,
653+ nofileoverwrite : Optional [ bool ] = False ,
645654 iflastmodified : Optional [datetime .datetime ] = None ,
646655 adminproxyuserid : Optional [str ] = None ,
647656 progress : Optional [Progress ] = None ,
@@ -675,7 +684,7 @@ def upload(
675684 uploadf : BufferedReader ,
676685 serverpath : str ,
677686 datemodified : datetime .datetime ,
678- nofileoverwrite : bool = False ,
687+ nofileoverwrite : Optional [ bool ] = False ,
679688 iflastmodified : Optional [datetime .datetime ] = None ,
680689 adminproxyuserid : Optional [str ] = None ,
681690 progress : Optional [Progress ] = None ,
0 commit comments