@@ -142,7 +142,7 @@ async def public_link(self, path, access='RO', expire_in=30):
142142 """
143143 return await Link (io .public_link , self ._core , path , access , expire_in ).a_execute ()
144144
145- async def copy (self , * paths , destination = None , resolver = None , cursor = None , wait = False , strict_permission = False ):
145+ async def copy (self , * paths , destination = None , resolver = None , cursor = None , wait = False ):
146146 """
147147 Copy one or more files or folders.
148148
@@ -156,16 +156,7 @@ async def copy(self, *paths, destination=None, resolver=None, cursor=None, wait=
156156 :raises cterasdk.exceptions.io.core.CopyError: Raised on failure copying resources.
157157 """
158158 try :
159- return await Copy (
160- io .copy ,
161- self ._core ,
162- wait ,
163- * paths ,
164- destination = destination ,
165- resolver = resolver ,
166- cursor = cursor ,
167- strict_permission = strict_permission
168- ).a_execute ()
159+ return await Copy (io .copy , self ._core , wait , * paths , destination = destination , resolver = resolver , cursor = cursor ).a_execute ()
169160 except ValueError :
170161 raise ValueError ('Copy destination was not specified.' )
171162
@@ -184,7 +175,7 @@ async def permalink(self, path):
184175class CloudDrive (FileBrowser ):
185176 """Async CloudDrive API with upload and sharing functionality."""
186177
187- async def upload (self , destination , handle , name = None , size = None , strict_permission = False ):
178+ async def upload (self , destination , handle , name = None , size = None ):
188179 """
189180 Upload from file handle.
190181
@@ -203,11 +194,10 @@ async def upload(self, destination, handle, name=None, size=None, strict_permiss
203194 destination ,
204195 handle ,
205196 name ,
206- size ,
207- strict_permission = strict_permission
197+ size
208198 ).a_execute ()
209199
210- async def upload_file (self , path , destination , strict_permission = False ):
200+ async def upload_file (self , path , destination ):
211201 """
212202 Upload a file.
213203
@@ -223,11 +213,10 @@ async def upload_file(self, path, destination, strict_permission=False):
223213 destination ,
224214 handle ,
225215 name ,
226- commonfs .properties (path )['size' ],
227- strict_permission = strict_permission
216+ commonfs .properties (path )['size' ]
228217 )
229218
230- async def mkdir (self , path , strict_permission = False ):
219+ async def mkdir (self , path ):
231220 """
232221 Create a directory.
233222
@@ -236,9 +225,9 @@ async def mkdir(self, path, strict_permission=False):
236225 :rtype: str
237226 :raises cterasdk.exceptions.io.core.CreateDirectoryError: Raised on error creating directory.
238227 """
239- return await CreateDirectory (io .mkdir , self ._core , path , strict_permission = strict_permission ).a_execute ()
228+ return await CreateDirectory (io .mkdir , self ._core , path , ).a_execute ()
240229
241- async def makedirs (self , path , strict_permission = False ):
230+ async def makedirs (self , path ):
242231 """
243232 Recursively create a directory.
244233
@@ -247,9 +236,9 @@ async def makedirs(self, path, strict_permission=False):
247236 :rtype: str
248237 :raises cterasdk.exceptions.io.core.CreateDirectoryError: Raised on error creating directory.
249238 """
250- return await CreateDirectory (io .mkdir , self ._core , path , True , strict_permission = strict_permission ).a_execute ()
239+ return await CreateDirectory (io .mkdir , self ._core , path , True , ).a_execute ()
251240
252- async def rename (self , path , name , * , resolver = None , wait = False , strict_permission = False ):
241+ async def rename (self , path , name , * , resolver = None , wait = False ):
253242 """
254243 Rename a file or folder.
255244
@@ -267,11 +256,10 @@ async def rename(self, path, name, *, resolver=None, wait=False, strict_permissi
267256 wait ,
268257 path ,
269258 name ,
270- resolver ,
271- strict_permission = strict_permission
259+ resolver
272260 ).a_execute ()
273261
274- async def delete (self , * paths , wait = False , strict_permission = False ):
262+ async def delete (self , * paths , wait = False ):
275263 """
276264 Delete one or more files or folders.
277265
@@ -281,7 +269,7 @@ async def delete(self, *paths, wait=False, strict_permission=False):
281269 :rtype: cterasdk.common.object.Object or :class:`cterasdk.lib.tasks.AwaitablePortalTask`
282270 :raises cterasdk.exceptions.io.core.DeleteError: Raised on error deleting resources.
283271 """
284- return await Delete (io .delete , self ._core , wait , * paths , strict_permission = strict_permission ).a_execute ()
272+ return await Delete (io .delete , self ._core , wait , * paths , ).a_execute ()
285273
286274 async def undelete (self , * paths , wait = False ):
287275 """
@@ -295,7 +283,7 @@ async def undelete(self, *paths, wait=False):
295283 """
296284 return await Recover (io .undelete , self ._core , wait , * paths ).a_execute ()
297285
298- async def move (self , * paths , destination = None , resolver = None , cursor = None , wait = False , strict_permission = False ):
286+ async def move (self , * paths , destination = None , resolver = None , cursor = None , wait = False ):
299287 """
300288 Move one or more files or folders.
301289
@@ -309,16 +297,7 @@ async def move(self, *paths, destination=None, resolver=None, cursor=None, wait=
309297 :raises cterasdk.exceptions.io.core.MoveError: Raised on error moving resources.
310298 """
311299 try :
312- return await Move (
313- io .move ,
314- self ._core ,
315- wait ,
316- * paths ,
317- destination = destination ,
318- resolver = resolver ,
319- cursor = cursor ,
320- strict_permission = strict_permission
321- ).a_execute ()
300+ return await Move (io .move , self ._core , wait , * paths , destination = destination , resolver = resolver , cursor = cursor ).a_execute ()
322301 except ValueError :
323302 raise ValueError ('Move destination was not specified.' )
324303
0 commit comments