@@ -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
@@ -204,10 +195,10 @@ async def upload(self, destination, handle, name=None, size=None, strict_permiss
204195 handle ,
205196 name ,
206197 size ,
207- strict_permission = strict_permission
198+
208199 ).a_execute ()
209200
210- async def upload_file (self , path , destination , strict_permission = False ):
201+ async def upload_file (self , path , destination ):
211202 """
212203 Upload a file.
213204
@@ -224,10 +215,10 @@ async def upload_file(self, path, destination, strict_permission=False):
224215 handle ,
225216 name ,
226217 commonfs .properties (path )['size' ],
227- strict_permission = strict_permission
218+
228219 )
229220
230- async def mkdir (self , path , strict_permission = False ):
221+ async def mkdir (self , path ):
231222 """
232223 Create a directory.
233224
@@ -236,9 +227,9 @@ async def mkdir(self, path, strict_permission=False):
236227 :rtype: str
237228 :raises cterasdk.exceptions.io.core.CreateDirectoryError: Raised on error creating directory.
238229 """
239- return await CreateDirectory (io .mkdir , self ._core , path , strict_permission = strict_permission ).a_execute ()
230+ return await CreateDirectory (io .mkdir , self ._core , path , ).a_execute ()
240231
241- async def makedirs (self , path , strict_permission = False ):
232+ async def makedirs (self , path ):
242233 """
243234 Recursively create a directory.
244235
@@ -247,9 +238,9 @@ async def makedirs(self, path, strict_permission=False):
247238 :rtype: str
248239 :raises cterasdk.exceptions.io.core.CreateDirectoryError: Raised on error creating directory.
249240 """
250- return await CreateDirectory (io .mkdir , self ._core , path , True , strict_permission = strict_permission ).a_execute ()
241+ return await CreateDirectory (io .mkdir , self ._core , path , True , ).a_execute ()
251242
252- async def rename (self , path , name , * , resolver = None , wait = False , strict_permission = False ):
243+ async def rename (self , path , name , * , resolver = None , wait = False ):
253244 """
254245 Rename a file or folder.
255246
@@ -268,10 +259,10 @@ async def rename(self, path, name, *, resolver=None, wait=False, strict_permissi
268259 path ,
269260 name ,
270261 resolver ,
271- strict_permission = strict_permission
262+
272263 ).a_execute ()
273264
274- async def delete (self , * paths , wait = False , strict_permission = False ):
265+ async def delete (self , * paths , wait = False ):
275266 """
276267 Delete one or more files or folders.
277268
@@ -281,7 +272,7 @@ async def delete(self, *paths, wait=False, strict_permission=False):
281272 :rtype: cterasdk.common.object.Object or :class:`cterasdk.lib.tasks.AwaitablePortalTask`
282273 :raises cterasdk.exceptions.io.core.DeleteError: Raised on error deleting resources.
283274 """
284- return await Delete (io .delete , self ._core , wait , * paths , strict_permission = strict_permission ).a_execute ()
275+ return await Delete (io .delete , self ._core , wait , * paths , ).a_execute ()
285276
286277 async def undelete (self , * paths , wait = False ):
287278 """
@@ -295,7 +286,7 @@ async def undelete(self, *paths, wait=False):
295286 """
296287 return await Recover (io .undelete , self ._core , wait , * paths ).a_execute ()
297288
298- async def move (self , * paths , destination = None , resolver = None , cursor = None , wait = False , strict_permission = False ):
289+ async def move (self , * paths , destination = None , resolver = None , cursor = None , wait = False ):
299290 """
300291 Move one or more files or folders.
301292
@@ -309,16 +300,7 @@ async def move(self, *paths, destination=None, resolver=None, cursor=None, wait=
309300 :raises cterasdk.exceptions.io.core.MoveError: Raised on error moving resources.
310301 """
311302 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 ()
303+ return await Move (io .move , self ._core , wait , * paths , destination = destination , resolver = resolver , cursor = cursor ).a_execute ()
322304 except ValueError :
323305 raise ValueError ('Move destination was not specified.' )
324306
0 commit comments