Skip to content

Add Handling for Incorrect Directory #28

Description

@Aaditya-G

Currently if i pass down a command in the cli tool with incorrect directory , for example:

agent-wiz extract --framework your_framework --directory ./this/directory/does/not/exists --output sample.json

It generates a graph output containing start and end nodes:

{
    "nodes": [
        {
            "name": "Start",
            "function_name": null,
            "docstring": null,
            "node_type": "Start",
            "source_location": null,
            "metadata": {}
        },
        {
            "name": "End",
            "function_name": null,
            "docstring": null,
            "node_type": "End",
            "source_location": null,
            "metadata": {}
        }
    ],
    "edges": [],
    "metadata": {
        "framework": "your_sample_framework"
    }
}

This should not happen.

An ideal solution to this would be to notify in the CLI itself that the directory sent is not accessible, it either does not exists or we do not have permission to view contents.

Metadata

Metadata

Assignees

Labels

hacktoberfestIssue on focus for hacktoberfest participant

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions