Skip to content

Unable to List Files and Subfolders  #75

@humzakhaled

Description

@humzakhaled

I am encountering issues while trying to list all files using the Storage facade with the 'bunny' disk.

Specifically, I am able to retrieve a file from a specific path using Storage::disk('bunny')->get($path), but when attempting to list all files, I receive an empty array.

Additionally, how can i list content of subfolders?

$files = Storage::disk('bunny')->allFiles()
dd($files); // returns empty array

$contents = Storage::disk('bunny')->listContents('specific-folder-path')
dd($contents); // returns empty array

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