-
Notifications
You must be signed in to change notification settings - Fork 21
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
extractWithoutRootDirectory() fails if destination is . #22
Comments
@xabbuh thanks for opening the issue! Working on it... |
@raulfraile Thank you. I thought that calling |
@xabbuh yes, I'm working with that approach, the working directory needs to be changed first |
@raulfraile Do we need some special handling in case there is no parent directory? |
@xabbuh would that happen only if you are in the root directory or is there any other situation? Anyway, I think we should handle gracefully and throw an error |
I think this will only happen when you are in the root directory. |
@raulfraile The fix does not work as is. I think the issue is the check |
@xabbuh thanks for your suggestions! Now I throw an exception when you are in the root directory and I use |
Commit: 5fa7ce1 |
@raulfraile I can confirm that this fixes the root issue. |
@raulfraile I see one issue with the proposed solution: When using the Symfony installer, the user would have to change directories after installing Symfony in the current directory because the current working directory does not exist anymore. What do you think about extracting the archive to a temporary subdirectory instead and moving contents up after the extraction succeeded? |
If you pass
.
(the current working directory) as the destination to theDistill::extractWithoutRootDirectory()
method, extracting the archive fails with a message like this:The reason for this is, for example, explained here.
The text was updated successfully, but these errors were encountered: