Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.remove/fs.removeSync #876

Closed
yosef-123 opened this issue Mar 16, 2021 · 15 comments
Closed

fs.remove/fs.removeSync #876

yosef-123 opened this issue Mar 16, 2021 · 15 comments

Comments

@yosef-123
Copy link

i have been able to use ths successfully in deleting huge folders but it dosnt delete .asar files and all its parent folders
ps it works on the rest of the directory just skips this file

@RyanZim
Copy link
Collaborator

RyanZim commented Mar 17, 2021

Platform? Node.js version? fs-extra version? Are you using fs-extra from within an electron app, or in plain Node.js?

@yosef-123
Copy link
Author

windows 10, 12.19.00, 9.1.0(latest),yes but uncompiled and compield
aka also doesnt work when i do npm start which runs 'electron .'

@RyanZim
Copy link
Collaborator

RyanZim commented Mar 18, 2021

Hmm, not sure what the issue is here. Have you verified you don't have a file permissions issue?

@RyanZim
Copy link
Collaborator

RyanZim commented Mar 18, 2021

Also, what's your electron version? This may be connected to electron/electron#28195.

@yosef-123
Copy link
Author

6.14.8
and i dont think its cunnected becuse althogh i dont know so much about file securety im able to manually delete it.

@yosef-123
Copy link
Author

ps. windows thinks there is full access to read write delete ect...

@RyanZim
Copy link
Collaborator

RyanZim commented Mar 19, 2021

Honestly, I'm stumped here. Is it possible for you to create a reduced test case of this bug?

@yosef-123
Copy link
Author

yosef-123 commented Mar 19, 2021 via email

@RyanZim
Copy link
Collaborator

RyanZim commented Mar 19, 2021

Looks like you code wasn't included. Another name for a reduced test case is a minimal, complete, verifiable example; see more here: https://ibug.io/blog/2018/06/minimal-complete-verifiable-example/

@yosef-123
Copy link
Author

yosef-123 commented Mar 20, 2021 via email

@yosef-123
Copy link
Author

default_app
ps its a .asar file just rename

@yosef-123
Copy link
Author

ps id still love if you can figure out how i can delete it or at least get a return like "1 files not deleted"

@yosef-123
Copy link
Author

yosef-123 commented Mar 21, 2021 via email

@RyanZim
Copy link
Collaborator

RyanZim commented Apr 1, 2021

Unfortunately, I'm clueless here, and I have little chance of being able to debug this. For security reasons, I cannot download your .asar file, and you said the problem is specific to this file, so I'm at a dead-end here. Does fs.unlink work to remove this specific file?

@RyanZim
Copy link
Collaborator

RyanZim commented Apr 15, 2021

Closing for lack of reply

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

No branches or pull requests

2 participants