소스 검색

Document `editor.delete_directory()` (#383)

Roman Silin 1 년 전
부모
커밋
d92f9d9dfc
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      docs/en/manuals/editor-scripts.md

+ 1 - 0
docs/en/manuals/editor-scripts.md

@@ -57,6 +57,7 @@ You can interact with the editor using `editor` package that defines this API:
 - `editor.can_get(node_id, property)` — check if you can get this property so `editor.get()` won't throw an error
 - `editor.can_set(node_id, property)` — check if `"set"` action with this property won't throw an error
 - `editor.create_directory(resource_path)` — create a directory if it does not exist, and all non-existent parent directories
+- `editor.delete_directory(resource_path)` — delete a directory if it exists, and all existent child directories and files.
 
 ## Commands