-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
occ scan:files Adding more details in the base print out (II) #21701
Conversation
By analyzing the blame information on this pull request, we identified @PVince81, @butonic and @icewind1991 to be potential reviewers |
👍 |
👍 |
NOTE: the whole interruption logic doesn't seem to work for me .... |
6e7cc78
to
cd24ab3
Compare
@DeepDiver1975 fixed the interruption logic and squashed the commits |
@DeepDiver1975 would you mind to give this a try again and based on success merge it? |
Doesn't work for me:
|
@mmattel you have to check if pcntl is available - http://php.net/manual/en/pcntl.installation.php |
cd24ab3
to
a9a84b4
Compare
@DeepDiver1975 thanks for bringing this up. I am running Ubuntu and I did not had problems with and never thought that this could be a problem. When I looked in http://php.net/manual/de/function.pcntl-signal.php I saw that it is "present" in our supported php version. But it seems that it is system dependent for beeing available or not (your link mentions that)... @PVince81 you are running openSUSE, could that be that this OS (or others) need special treatement to enable @PVince81 @DeepDiver1975 how can we check that or describe in the documentation the need for php |
@PVince81 May I ask you a favour:
I am trying to find a good way identifying if pcntl functions are available on the hosting system. |
I'm running openSUSE Tumbleweed |
@PVince81 Thanks, I like this answer 😄 ! because it means we can check against and give advices to enable it.
With the current code of this PR, the existance of the My next steps would be to update the documentation with regards to the pcntl php module and to create a PR to show at the top of the admin page a note if the pcntl php module is missing (may take some time due to regular business...). Would you mind to test this PR again? |
@@ -110,9 +120,15 @@ protected function scanFiles($user, $path, $verbose, OutputInterface $output) { | |||
} else { | |||
$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) { | |||
$this->filesCounter += 1; | |||
if ($this->hasBeenInterrupted()) { | |||
throw new \Exception('crtl-c'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> ctrl, not crtl
Apart from the copy-pasted typo, seems to work fine 👍 when the PHP module for interruption is not present |
a9a84b4
to
ee8d470
Compare
Fixed the text typo (crtl-c --> ctrl-c) |
ee8d470
to
c3122ac
Compare
@DeepDiver1975 after the ok from @PVince81, merge? |
@icewind1991 @DeepDiver1975 ready for merge ? (needs rereview for pnctl fallback) |
Use proper method name Fixed the interruption logic Checks the availability of the pcntl_signal function Fixed typo crtl-c --> ctrl-c one overseen crtl-c typo
c3122ac
to
e05592d
Compare
Had to rebase since the files app has had a version bump. 👍 |
occ scan:files Adding more details in the base print out (II)
This is a restart of #21445 because of #21504 (Why are some PR checks passing and why are some checks stuck).
This is a PR for adding more details in the base printout of ./occ files:scan
Reference issue #21412 (occ files:scan missing feedback while running)
@jancborchardt @karlitschek
All the other parameters stay the same. When adding eg --verbose, you get the details of each file/directory beeing scanned.
I have implemented the following:
There was a discussion in the original PR having the username in the middle or not.
I decided to stay with the username at the end because it then will be formatted properly.
Please see the examples below:
The table printout at the end is a symfony function which renders automatically. Pls see http://symfony.com/doc/current/components/console/helpers/table.html