tessl install tessl/pypi-azure-storage-file-datalake@12.21.0Microsoft Azure File DataLake Storage Client Library for Python
Agent Success
Agent success rate when using this tile
92%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
93%
Build a file permission manager that manages access control for files and directories in Azure Data Lake Storage Gen2 using standard Unix-style permissions.
@generates
class PermissionManager:
"""Manages POSIX permissions for Azure Data Lake Storage Gen2 files and directories."""
def __init__(self, file_system_client):
"""Initialize with a file system client.
Args:
file_system_client: An Azure FileSystemClient instance
"""
pass
def create_directory_with_permissions(self, directory_path: str, permissions: str) -> None:
"""Create a directory with specified POSIX permissions.
Args:
directory_path: Path where the directory should be created
permissions: POSIX permissions in symbolic (e.g., 'rwxr-xr--') or octal (e.g., '0754') notation
"""
pass
def create_file_with_permissions(self, file_path: str, permissions: str) -> None:
"""Create a file with specified POSIX permissions.
Args:
file_path: Path where the file should be created
permissions: POSIX permissions in octal notation (e.g., '0644')
"""
pass
def update_permissions(self, path: str, permissions: str) -> None:
"""Update permissions for an existing file or directory.
Args:
path: Path to the file or directory
permissions: POSIX permissions in octal notation (e.g., '0755')
"""
pass
def get_permissions(self, path: str) -> str:
"""Get the current permissions of a file or directory.
Args:
path: Path to the file or directory
Returns:
String representation of the permissions
"""
passProvides Azure Data Lake Storage Gen2 client library for managing files, directories, and their POSIX permissions.
@satisfied-by