Skip to content

Filesystem/CascadingFilesystem #5

@WinterSilence

Description

@WinterSilence

Fixes:

  1. Cache should not be mandatory - __construct(array $base_paths, Cache $cache = null)
  2. Need set setBasePaths and isHiddenFile as public
  3. Why listFiles not supported subdirectories? Old Kohana::list_files() more powerfull than this.
    public function isHiddenFile($filename)
    {
        return in_array($filename[0], ['.', '~']);
    }
  1. load: include better than require_once, because we can't catch fatal errors, we use it's not only for class files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions