Skip to content

Reporter outputs an empty location if file was removed #56

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

Closed
tomzx opened this issue Mar 21, 2015 · 0 comments
Closed

Reporter outputs an empty location if file was removed #56

tomzx opened this issue Mar 21, 2015 · 0 comments
Labels
Milestone

Comments

@tomzx
Copy link
Owner

tomzx commented Mar 21, 2015

This is due to realpath($missing_path) returning the current working directory, which is then stripped if we have set the reporter not to output full paths.

$fullPath = realpath($operation->getLocation());
$location = str_replace($this->cwd . DIRECTORY_SEPARATOR, '', $fullPath);
@tomzx tomzx added the bug label Mar 21, 2015
@tomzx tomzx added this to the Candidate for next Minor milestone Mar 21, 2015
tomzx added a commit that referenced this issue May 3, 2015
Get the absolute path of files in the Finder.

This makes it possible to strip the current working directory from the path as the full path is already resolved (which was not the case before).
@tomzx tomzx modified the milestones: v0.6.1, Candidate for next Minor May 3, 2015
@tomzx tomzx closed this as completed May 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant