Skip to content

[Bug]: Recursive rmdir returns error while trying to remove folder, that contains asar file. #40960

Closed as not planned

Description

@tangjfn

Preflight Checklist

Electron Version

28.1.3

What operating system are you using?

Windows

Operating System Version

Windows 11 22631.3007

What arch are you using?

x64

Last Known Working Electron version

27.2.2

Expected Behavior

const fs = reuqire("fs");
// const fs = require("original-fs");
await fs.promises.rm("path contains asar file",{force: true, recursive: true})
// no error thrown

Actual Behavior

const fs = reuqire("fs");
// const fs = require("original-fs"); // same error thrown
await fs.promises.rm("path contains asar file",{force: true, recursive: true})
// throw a error ENOTEMPTY: directory not empty, rmdir '...'

Testcase Gist URL

No response

Additional Information

test.zip

extract test.zip to a dir
cd the dir
electron .
input a dir contains any asar file
click rm button

Activity

  1. codebytere commented on Jan 11, 2024

    @codebytere
    Member

    Thanks for reaching out!

    Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. This forum is for raising bugs or requesting new features, and for most questions about Electron there are a lot of more appropriate community options. There are helpful people in this Discord or the subreddit that should be willing to point you in the right direction.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions