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

remove function executes "successfully" but doesn't do anything? #281

Closed
georgeedwards opened this issue Oct 3, 2016 · 3 comments
Closed

Comments

@georgeedwards
Copy link

I am using the remove function, which when executed prints "success" to the console. But as you can see below the file path is unchanged. Why? I am using the latest version on Windows 10.

enter image description here

@jprichardson
Copy link
Owner

I'm not sure what you're trying to do here... specifically since you're using copy right after remove with the same path. Also, you're using absolute paths, so that seems weird given the path name.

If you're trying to test if remove works, just use remove and then call existsSync on that path.

@georgeedwards
Copy link
Author

@jprichardson The remove was for a child directory of the one listed, the idea being to remove something from docs-production and then move what remains elsewhere. I changed it to show in the screenshot. However, I still don't understand why docs-production- still exists inpre-source` after running this file?

@jprichardson
Copy link
Owner

However, I still don't understand why docs-production- still exists inpre-source` after running this file?

You're using absolute paths. That's why. e.g. /pre-source vs pre-source.

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

No branches or pull requests

2 participants