Browse Source

[docs] Add chmod and rename operations for ADLS

Harsh Gupta 4 years ago
parent
commit
7ccd8ae1d3
1 changed files with 7 additions and 1 deletions
  1. 7 1
      docs/docs-site/content/developer/api/python/_index.md

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

@@ -98,7 +98,7 @@ Perform various FS operations:
     # Stats
     fs.stats('abfs://data/user/csso_hueuser/demo_dir')
 
-    # List
+    # List directory
     fs.listdir('abfs://data/user/csso_hueuser/demo_dir')
 
     # Create directory
@@ -119,6 +119,12 @@ Perform various FS operations:
     # Delete directory with recursive as true
     fs.rmtree('abfs://data/user/csso_hueuser/demo_dir')
 
+    # Chmod (accepts both octal number and string)
+    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/')
+
 ## Users
 
 ### Create