Skip to content

[Utoopack] rm 不生效 #2369

@Wu-kung

Description

@Wu-kung

What happened?

https://github.com/utooland/utoo/blob/next/packages/utoo-web/src/project.ts#L144-L152
执行以下代码不符合预期:

import { Project as UtooProject } from "@utoo/web";

const projectInstance = new UtooProject({
// ...
})

projectInstance.rm(path, { recursive: true })  // ❌
projectInstance.rmdir(path, { recursive: true })  // ✅

Expected result

删除文件,与删除文件夹行为保持一致。

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-Bug-confirmedStatus: report has been confirmed as a valid bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions