Skip to content

remove file lists and iterators in WorkingDirectory #430

@ondrejhlavacek

Description

@ondrejhlavacek

eg.

        $fs = new Filesystem();
        $finder = new Finder();
        $finder->files()->in($this->workingDir . DIRECTORY_SEPARATOR . 'data');
        $fs->remove($finder);
        $fs->remove($this->workingDir . DIRECTORY_SEPARATOR . 'data');

=>

        $fs->remove($finder);
        $fs->remove($this->workingDir . DIRECTORY_SEPARATOR . 'data');

něco takovýho je ve všech metodách

a ještě by bylo dobrý zkontrolovat, jestli to z nějakýho důvodu nezůstává ležet v paměti.

a pokud to nepůjde (Filesystem::remove() to třeba může iterovat po souborech), tak pak bych tam jebnul sprostej rm -rf.

Pravděpodobně fix na #429

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions