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: Use the correct rm/rmdir method when moving files between mounts #1770

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Sep 16, 2024

Fixes this problem occuring when moving files between mounts:

Not a directory or a symbolic link to a directory

It occured because we always attempted to remove the source file using rmdir instead of choosing either rm or rmdir. This PR introduces a proper check.

Once it's merged, let's tag a new @wp-playground/cli release.

Testing instructions

Confirm the unit tests pass## Motivation for the change, related issues

```
Not a directory or a symbolic link to a directory
```

It occured because we always attempted to remove the source file using `rmdir` instead of choosing either `rm` or `rmdir`. This PR introduces a proper check.

 ## Testing instructions

Confirm the unit tests pass
@adamziel
Copy link
Collaborator Author

Test failures are unrelated, let's ship it

@adamziel adamziel merged commit 41a0f6f into trunk Sep 17, 2024
4 of 5 checks passed
@adamziel adamziel deleted the use-correct-rm-in-fshelpers-mv branch September 17, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant