소스 검색

[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