---
title: "Discussion on \"Fetch \"directories\" only from GCS with PHP\" | Hashnode"
description: "Discussion on \"Fetch \"directories\" only from GCS with PHP\". My recent task was to search in bucket for objects located in selected \"directories\" using PHP. Directory list inside bucket is not constant. New directories can be added every few months. Search should fetch all \"main directories\" that match some pa..."
url: "https://hashnode.com/posts/fetch-directories-only-from-gcs-with-php/67044fff0048f28681b12411"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fetch "directories" only from GCS with PHP](https://piotrekkr.hashnode.dev/fetch-directories-only-from-gcs-with-php?utm_source=hashnode&utm_medium=feed)

My recent task was to search in bucket for objects located in selected "directories" using PHP. Directory list inside bucket is not constant. New directories can be added every few months. Search should fetch all "main directories" that match some pa...

Oct 7, 2024 · 3 min read · piotrekkr.hashnode.dev  
Updated Oct 22, 2024  
Read the article

-   [#gcp](https://hashnode.com/tag/gcp)
-   [#php](https://hashnode.com/tag/php)
-   [#storage](https://hashnode.com/tag/storage)
-   [#gcs](https://hashnode.com/tag/gcs)

## Written by

[Piotrekkr](https://hashnode.com/@piotrekkr)

@piotrekkr

  
[View profile](https://hashnode.com/@piotrekkr)

Previously software engineer, currently working as DevOps engineer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
