or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/azure-storage-file-datalake@12.21.x
tile.json

tessl/pypi-azure-storage-file-datalake

tessl install tessl/pypi-azure-storage-file-datalake@12.21.0

Microsoft 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%

task.mdevals/scenario-7/

File Permission Manager

Build a file permission manager that manages access control for files and directories in Azure Data Lake Storage Gen2 using standard Unix-style permissions.

Capabilities

Permission Setting

  • Create a directory with owner having read+write+execute, group having read+execute, and others having read-only permissions using symbolic notation @test
  • Create a file with permissions set to 0644 (owner read+write, group read, others read) using octal notation @test
  • Update a directory's permissions to 0755 after creation @test

Permission Retrieval

  • Retrieve and verify permissions from an existing directory match the expected symbolic format @test
  • Retrieve and verify permissions from an existing file match the expected format @test

Implementation

@generates

API

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
        """
        pass

Dependencies { .dependencies }

azure-storage-file-datalake { .dependency }

Provides Azure Data Lake Storage Gen2 client library for managing files, directories, and their POSIX permissions.

@satisfied-by