@@ -393,7 +393,7 @@ def anon_login(self, folder_token, folder_password=''):
393393 self ._davpath = url_components .path + 'public.php/webdav'
394394 self ._webdav_url = self .url + 'public.php/webdav'
395395
396- def check_remote_file (self , path ):
396+ def check_remote_path (self , path : str ):
397397 path_split = list (filter (None , path .split ("/" )))
398398 try :
399399 if len (path_split ) > 1 :
@@ -524,7 +524,7 @@ def get_file(self, remote_path, local_file=None):
524524 stream = True
525525 )
526526
527- self .check_remote_file (path = remote_path )
527+ self .check_remote_path (path = remote_path )
528528
529529 if res .status_code == 200 :
530530 if local_file is None :
@@ -722,7 +722,7 @@ def mkdir(self, path):
722722 if not path .endswith ('/' ):
723723 path += '/'
724724
725- self .check_remote_file (path = path )
725+ self .check_remote_path (path = path )
726726
727727 return self ._make_dav_request ('MKCOL' , path )
728728
@@ -733,7 +733,7 @@ def delete(self, path):
733733 :returns: True if the operation succeeded, False otherwise
734734 :raises: HTTPResponseError in case an HTTP error status was returned
735735 """
736- self .check_remote_file (path = path )
736+ self .check_remote_path (path = path )
737737 return self ._make_dav_request ('DELETE' , path )
738738
739739 def list_open_remote_share (self ):
0 commit comments