Skip to content

Instantly share code, notes, and snippets.

@mittachaitu
Last active September 4, 2025 05:58
Show Gist options
  • Save mittachaitu/78f3254915012ad838b92c8e7979d369 to your computer and use it in GitHub Desktop.
Save mittachaitu/78f3254915012ad838b92c8e7979d369 to your computer and use it in GitHub Desktop.
from pyarrow import fs as py_fs
import pyarrow.parquet as pq
fs = py_fs.AzureFileSystem(account_name="mittasblobforray2")
filePath = "testcontainer1/10G-data"
selector = py_fs.FileSelector(base_dir=filePath, recursive=True)
file_info = fs.get_file_info(selector)
for file in file_info:
print(f"File Name: {file}")
if file.is_file:
print(f"Reading File: {file.path}")
pq.read_table(file.path, filesystem=fs)
fs.create_dir("testcontainer1/10G_DIR_DATA2", recursive=False)
print("Successfully created directory!!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment