File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/model
versioned_docs/version-0.8/reference/model Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -65,3 +65,15 @@ weight: 100
65
65
` mv(src: str, dest: str) `
66
66
67
67
将文件或目录从源路径移动到目标路径。
68
+
69
+ ## size
70
+
71
+ ` size(filepath: str) -> int `
72
+
73
+ 获取指定路径上文件的大小。
74
+
75
+ ## write
76
+
77
+ ` write(filepath: str, content: str) `
78
+
79
+ 将内容写入指定路径的文件。如果文件不存在,将会被创建。如果文件存在,其内容将被替换。
Original file line number Diff line number Diff line change @@ -65,3 +65,15 @@ Copy a file or directory from the source path to the destination path.
65
65
` mv(src: str, dest: str) `
66
66
67
67
Move a file or directory from the source path to the destination path.
68
+
69
+ ## size
70
+
71
+ ` size(filepath: str) -> int `
72
+
73
+ Get the size of a file at the specified path.
74
+
75
+ ## write
76
+
77
+ ` write(filepath: str, content: str) `
78
+
79
+ Write content to a file at the specified path. If the file doesn't exist, it will be created. If it does exist, its content will be replaced.
You can’t perform that action at this time.
0 commit comments