浏览代码

[docs] Add chmod and rename operations for ADLS

Harsh Gupta 4 年之前
父节点
当前提交
7ccd8ae1d3
共有 1 个文件被更改,包括 7 次插入1 次删除
  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