Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Virtual folders #3

Description

@fisharebest

If we create three files in three folders, and then list the contents,

$filesystem->put('foo/file.txt', 'foo');
$filesystem->put('foo/bar/file.txt', 'foo');
$filesystem->put('foo/bar/baz/file.txt', 'foo');
$contents = $filesystem->listContents('foo', true);

we get

foo/bar
foo/bar/baz/file.txt
foo/bar/file.txt
foo/file.txt

We display one virtual folder foo/bar but not foo/bar/baz.

I looked at the AWS-S3 adapter. It implements folders by creating empty 'files' with names ending in /.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions