Skip to content

adding new cli script to rescan files - #4285

Merged
DeepDiver1975 merged 5 commits into
masterfrom
scan-files-script-master
Aug 5, 2013
Merged

DeepDiver1975 merged 5 commits into
masterfrom
scan-files-script-master

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Starting point for a script based files and folder rescan script for the command line.

backport to stable5 before next release necessary

@icewind1991 @karlitschek @butonic @blizzz @bartv2

@ghost

ghost commented Aug 1, 2013

Copy link
Copy Markdown

@blizzz

blizzz commented Aug 1, 2013

Copy link
Copy Markdown
Contributor

Another CLI entry point? ;)

Comment thread scanFiles.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't echo every file being scanned, only showing folders and/or file count is much better imo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's more helpful to have a complete log (or having another param for verbosity). You still can break it down or even dev null it if you want no output at all.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

I need something now for 5.0.10

@blizzz

blizzz commented Aug 2, 2013

Copy link
Copy Markdown
Contributor

👍

Only (but this is more related to the Scanner), are other destinations than user/files supposed to be scanned? For instance:
/master/files_encryption/…
/master/files_versions/…
/master/lucene_index/…

@bartv2

bartv2 commented Aug 2, 2013

Copy link
Copy Markdown
Contributor

can we create one entrypoint console.php that just loads files from core/console or so, see #3992

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

can we create one entrypoint console.php that just loads files from core/console or so, see #3992

If we can make this all happen for 5.0.10 - fine with be.
Until we have that solution in place I need this script.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

are other destinations than user/files supposed to be scanned? For instance:
/master/files_encryption/…
/master/files_versions/…
/master/lucene_index/…

All these apps (files_sharing as well) need such scripts in order to sync db and file system - as a last chance of recovery

@bartv2

bartv2 commented Aug 2, 2013

Copy link
Copy Markdown
Contributor

@DeepDiver1975 like this?

@ghost

ghost commented Aug 2, 2013

Copy link
Copy Markdown

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@bartv2 :I-LIKE: - let me test this ....

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@bartv2 we need - one day - to think about the initialization code within lib/base.php
In case I have not enough permissions to e.g. access config.php html is returned - which is really ugly.
In addition the check for writable apps folder is not necessary for the console script

@ghost

ghost commented Aug 2, 2013

Copy link
Copy Markdown

@ghost

ghost commented Aug 2, 2013

Copy link
Copy Markdown

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

final review and approve please
@icewind1991 @karlitschek @butonic @blizzz @bartv2 - THX

@karlitschek

Copy link
Copy Markdown
Contributor

looks fine 👍

@blizzz

blizzz commented Aug 5, 2013

Copy link
Copy Markdown
Contributor

yep, fine 👍

DeepDiver1975 added a commit that referenced this pull request Aug 5, 2013
adding new cli script to rescan files
@DeepDiver1975
DeepDiver1975 merged commit bf1a9df into master Aug 5, 2013
@DeepDiver1975
DeepDiver1975 deleted the scan-files-script-master branch August 5, 2013 08:09
@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@karlitschek I'll backport this as I need this for upgrade testing

@karlitschek

Copy link
Copy Markdown
Contributor

yes. awesome

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants