Skip to content

FileSystemManager.StatSync没有第二个是否递归参数 #1017

@CimXin

Description

@CimXin

描述Bug

团结引擎版本: 2022.3.48t7
WXSDK版本:0.1.18

官方文档中是有第二个是否递归参数FileSystemManager.statSync

但是在C#中没看到第二个参数
public WXStat[] StatSync(string path) { return JsonMapper.ToObject<WXStat[]>(B(path, true)); }

运行环境

团结引擎版本: 2022.3.48t7
WXSDK版本:0.1.18

Activity

CimXin

CimXin commented on Jun 18, 2025

@CimXin
Author

根据官方文档中Stats是有如下两个方法。

[boolean Stats.isDirectory()](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.isDirectory.html)
判断当前文件是否一个目录

[boolean Stats.isFile()](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.isFile.html)
判断当前文件是否一个普通文件

在C#中也没有看到

namespace WeChatWASM;

public class WXStatInfo
{
    //
    // 摘要:
    //     文件的类型和存取的权限,对应 POSIX stat.st_mode
    public int mode;

    //
    // 摘要:
    //     文件大小,单位:B,对应 POSIX stat.st_size
    public int size;

    //
    // 摘要:
    //     文件最近一次被存取或被执行的时间,UNIX 时间戳,对应 POSIX stat.st_atime
    public long lastAccessedTime;

    //
    // 摘要:
    //     文件最后一次被修改的时间,UNIX 时间戳,对应 POSIX stat.st_mtime
    public long lastModifiedTime;
}
0oQiaoo0

0oQiaoo0 commented on Jun 20, 2025

@0oQiaoo0
Contributor

我们这边跟进修复一下 预计下个预发布版本修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @CimXin@0oQiaoo0

        Issue actions

          FileSystemManager.StatSync没有第二个是否递归参数 · Issue #1017 · wechat-miniprogram/minigame-unity-webgl-transform