-
Notifications
You must be signed in to change notification settings - Fork 40
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
Command to clean logs directory #68
Conversation
1d73e21
to
eb7e66e
Compare
eb7e66e
to
c36d8f2
Compare
0202794
to
375484e
Compare
{ | ||
$finder = (new Finder()) | ||
->files() | ||
->in($logsDir) |
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.
Omezit to jen na aktualni adresar?
$finder->depth('== 0');
http://symfony.com/doc/current/components/finder.html#directory-depth
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.
Ok, why not (steward itself won't create any subdirs). But what is the usecase? Avoid deleting some custom xml files in subdirectory?
See #63 and #67. Should be merged after #65.
The clean command is automatically invoked on
run
command startup, unless option--no-clean
is given.