Browse Source

[docs] Add copy operation for ADLS

Harsh Gupta 4 years ago
parent
commit
f7f2027fc8
1 changed files with 4 additions and 1 deletions
  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