File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -309,14 +309,14 @@ def read_bytes(self):
309
309
""""""
310
310
return self ._client .get (self .as_download_uri ()).content
311
311
312
- def write_text (self , data : str ):
312
+ def write_text (self , data : str , as_task = False ):
313
313
""""""
314
- return self .write_bytes (data .encode ())
314
+ return self .write_bytes (data .encode (), as_task = as_task )
315
315
316
- def write_bytes (self , data : bytes ):
316
+ def write_bytes (self , data : bytes , as_task = False ):
317
317
""""""
318
318
319
- _res = self ._client .upload_file_put (data , self .as_posix (), False )
319
+ _res = self ._client .upload_file_put (data , self .as_posix (), as_task = as_task )
320
320
if _res .code == 200 :
321
321
return self .stat ()
322
322
return None
Original file line number Diff line number Diff line change 1
- __version__ = "0.30.3"
1
+ """
2
+
3
+ 0.30.4:
4
+ path_lib.AlistPath.write_* 支持as_task参数
5
+
6
+ """
7
+
8
+ __version__ = "0.30.4"
2
9
3
10
ALIST_VERSION = "v3.30.0"
You can’t perform that action at this time.
0 commit comments