File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5033,10 +5033,10 @@ innerAudioContext.onError((res) => {
5033
5033
success?: StatSuccessCallback
5034
5034
}
5035
5035
interface StatSuccessCallbackResult {
5036
- /** [Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Object
5036
+ /** [Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Array.<[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)>
5037
5037
*
5038
- * 当 recursive 为 false 时,res.stats 是一个 Stats 对象。当 recursive 为 true 且 path 是一个目录的路径时,res.stats 是一个 Object,key 以 path 为根路径的相对路径,value 是该路径对应的 Stats 对象 。 */
5039
- stats: Stats | IAnyObject
5038
+ * 当 recursive 为 false 时,res.stats 是一个 Stats 对象。当 recursive 为 true 且 path 是一个目录的路径时,res.stats 是一个 Array,数组的每一项是一个对象,每个对象包含 path 和 stats 。 */
5039
+ stats: Stats | Stats[]
5040
5040
errMsg: string
5041
5041
}
5042
5042
/** 好友状态信息列表 */
@@ -7495,7 +7495,7 @@ console.log(stats)
7495
7495
*
7496
7496
* 最低基础库: `2.16.1` */
7497
7497
fstatSync(option: FstatSyncOption): Stats
7498
- /** [[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Object FileSystemManager.statSync(string path, boolean recursive)](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.statSync.html)
7498
+ /** [[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Array.<[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)> FileSystemManager.statSync(string path, boolean recursive)](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.statSync.html)
7499
7499
*
7500
7500
* [FileSystemManager.stat](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.stat.html) 的同步版本 */
7501
7501
statSync(
@@ -7505,7 +7505,7 @@ console.log(stats)
7505
7505
*
7506
7506
* 最低基础库: `2.3.0` */
7507
7507
recursive?: boolean
7508
- ): Stats | IAnyObject
7508
+ ): Stats | Stats[]
7509
7509
/** [[WriteResult](https://developers.weixin.qq.com/minigame/dev/api/file/WriteResult.html) FileSystemManager.writeSync(Object object)](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.writeSync.html)
7510
7510
*
7511
7511
* 同步写入文件
You can’t perform that action at this time.
0 commit comments