浏览代码

[docs] Add copy operation for ADLS

Harsh Gupta 4 年之前
父节点
当前提交
f7f2027fc8
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      docs/docs-site/content/developer/api/python/_index.md

+ 4 - 1
docs/docs-site/content/developer/api/python/_index.md

@@ -123,7 +123,10 @@ Perform various FS operations:
     fs.chmod('abfs://data/user/csso_hueuser/demo_dir/demo_file.txt', permissionNumber='777')
 
     # Rename path
-    fs.rename('abfs://data/user/csso_hueuser/old_name_dir/', 'abfs://data/user/csso_hueuser/new_name_dir/')
+    fs.rename('abfs://data/user/csso_hueuser/old_name_dir', 'abfs://data/user/csso_hueuser/new_name_dir')
+
+    # Copy (for both file and directory)
+    fs.copy('abfs://data/user/csso_hueuser/source_path', 'abfs://data/user/csso_hueuser/destination_path')
 
 ## Users