Symfony\Component\Finder\Adapter\GnuFindAdapter
Shell engine implementation using GNU find command.
- Author: Jean-François Simon <contact@jfsimon.fr>
Synopsis
class GnuFindAdapter
extends AbstractFindAdapter
{
- // Inherited members from AbstractFindAdapter
- protected Shell $shell;
- // Inherited members from AbstractAdapter
- protected $followLinks;
- protected integer $mode;
- protected integer $minDepth;
- protected $maxDepth;
- protected array $exclude;
- protected array $names;
- protected array $notNames;
- protected array $contains;
- protected array $notContains;
- protected array $sizes;
- protected array $dates;
- protected array $filters;
- protected $sort;
- protected array $paths;
- protected array $notPaths;
- protected $ignoreUnreadableDirs;
- // methods
- public void getName()
- protected void buildFormatSorting()
- protected void canBeUsed()
- protected void buildFindCommand()
- protected void buildContentFiltering()
- // Inherited methods from AbstractFindAdapter
- public void __construct()
- public void searchInDirectory()
- protected void canBeUsed()
- protected Command buildFindCommand()
- protected abstract void buildFormatSorting()
- protected abstract void buildContentFiltering()
- // Inherited methods from AbstractAdapter
- public void isSupported()
- public void setFollowLinks()
- public void setMode()
- public void setDepths()
- public void setExclude()
- public void setNames()
- public void setNotNames()
- public void setContains()
- public void setNotContains()
- public void setSizes()
- public void setDates()
- public void setFilters()
- public void setSort()
- public void setPath()
- public void setNotPath()
- public void ignoreUnreadableDirs()
- protected abstract Boolean canBeUsed()
Hierarchy
Tasks
Line | Task |
---|---|
94 | avoid forking process for each $pattern by using multiple -e options |
Members
protected
- $contains
- $dates
- $exclude
- $filters
- $followLinks
- $ignoreUnreadableDirs
- $maxDepth
- $minDepth
- $mode
- $names
- $notContains
- $notNames
- $notPaths
- $paths
- $shell — Symfony\Component\Finder\Shell\Shell
- $sizes
- $sort
Methods
protected
- buildContentFiltering() — {@inheritdoc}
- buildFindCommand() — {@inheritdoc}
- buildFormatSorting() — {@inheritdoc}
- canBeUsed() — {@inheritdoc}
public
- getName() — {@inheritdoc}
Inherited from Symfony\Component\Finder\Adapter\AbstractFindAdapter
protected
- buildContentFiltering()
- buildFindCommand()
- buildFormatSorting()
- canBeUsed() — {@inheritdoc}
public
- searchInDirectory() — {@inheritdoc}
Inherited from Symfony\Component\Finder\Adapter\AbstractAdapter
protected
- canBeUsed() — Returns whether the adapter is supported in the current environment.
public
- ignoreUnreadableDirs() — {@inheritdoc}
- isSupported() — {@inheritDoc}
- setContains() — {@inheritdoc}
- setDates() — {@inheritdoc}
- setDepths() — {@inheritdoc}
- setExclude() — {@inheritdoc}
- setFilters() — {@inheritdoc}
- setFollowLinks() — {@inheritdoc}
- setMode() — {@inheritdoc}
- setNames() — {@inheritdoc}
- setNotContains() — {@inheritdoc}
- setNotNames() — {@inheritdoc}
- setNotPath() — {@inheritdoc}
- setPath() — {@inheritdoc}
- setSizes() — {@inheritdoc}
- setSort() — {@inheritdoc}